]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/dynamic_macro.h
add description of new option to docs and add option (commented out) into template.
[qmk_firmware.git] / quantum / dynamic_macro.h
index 7dca30f0765979783cb0856b7ea030b26514be63..045ee95b5f170d5902157554ff73dbfdec04ebaa 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);
     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) {