소스 검색

Merge pull request #1294 from shieldsd/master

Prevent the recording of looping dynamic macros.
Jack Humbert 8 년 전
부모
커밋
d548693c8b
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      quantum/dynamic_macro.h

+ 4 - 0
quantum/dynamic_macro.h

@@ -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) {