]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/dynamic_macro.h
Add user-overridable callback for cancelling UCIS input (#5564)
[qmk_firmware.git] / quantum / dynamic_macro.h
index 7dca30f0765979783cb0856b7ea030b26514be63..07cba19f604c9913f558d430c6fabfe7f3ae81ed 100644 (file)
@@ -48,9 +48,11 @@ enum dynamic_macro_keycodes {
 /* Blink the LEDs to notify the user about some event. */
 void dynamic_macro_led_blink(void)
 {
+#ifdef BACKLIGHT_ENABLE
     backlight_toggle();
-    _delay_ms(100);
+    wait_ms(100);
     backlight_toggle();
+#endif
 }
 
 /* Convenience macros used for retrieving the debug info. All of them
@@ -272,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) {