X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quantum%2Fdynamic_macro.h;h=07cba19f604c9913f558d430c6fabfe7f3ae81ed;hb=2a231457bd494079c36cf3e07c9b887016adb491;hp=7dca30f0765979783cb0856b7ea030b26514be63;hpb=10a7cd7e5ae1affe226423dd94c6443f8cf64e22;p=qmk_firmware.git diff --git a/quantum/dynamic_macro.h b/quantum/dynamic_macro.h index 7dca30f07..07cba19f6 100644 --- a/quantum/dynamic_macro.h +++ b/quantum/dynamic_macro.h @@ -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) {