Merge pull request #1294 from shieldsd/master

Prevent the recording of looping dynamic macros.
This commit is contained in:
Jack Humbert 2017-06-01 12:18:36 -04:00 committed by GitHub
commit d548693c8b

View file

@ -274,6 +274,10 @@ bool process_record_dynamic_macro(uint16_t keycode, keyrecord_t *record)
macro_id = 0; macro_id = 0;
} }
return false; return false;
case DYN_MACRO_PLAY1:
case DYN_MACRO_PLAY2:
dprintln("dynamic macro: ignoring macro play key while recording");
return false;
default: default:
/* Store the key in the macro buffer and process it normally. */ /* Store the key in the macro buffer and process it normally. */
switch (macro_id) { switch (macro_id) {