]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
dynamic_macro.h: Do not use backlight_toggle if backlight is disabled
authorWojciech Siewierski <wojciech.siewierski@onet.pl>
Thu, 4 May 2017 22:11:24 +0000 (00:11 +0200)
committerWojciech Siewierski <wojciech.siewierski@onet.pl>
Thu, 4 May 2017 22:11:24 +0000 (00:11 +0200)
Fixes #1199.

quantum/dynamic_macro.h

index 7dca30f0765979783cb0856b7ea030b26514be63..f242405defbdcd7416371c87be7271a1a96e19b3 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