Skip to content

Commit

Permalink
Merge pull request qmk#1294 from shieldsd/master
Browse files Browse the repository at this point in the history
Prevent the recording of looping dynamic macros.
  • Loading branch information
jackhumbert authored Jun 1, 2017
2 parents ec3e684 + 606e13a commit d548693
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/dynamic_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ bool process_record_dynamic_macro(uint16_t keycode, keyrecord_t *record)
macro_id = 0;
}
return false;
case DYN_MACRO_PLAY1:
case DYN_MACRO_PLAY2:
dprintln("dynamic macro: ignoring macro play key while recording");
return false;
default:
/* Store the key in the macro buffer and process it normally. */
switch (macro_id) {
Expand Down

0 comments on commit d548693

Please sign in to comment.