From: Wojciech Siewierski Date: Thu, 4 May 2017 22:11:24 +0000 (+0200) Subject: dynamic_macro.h: Do not use backlight_toggle if backlight is disabled X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a1e156a3d20e10134ac01b4cc2eaf2c92c0d2f23;p=qmk_firmware.git dynamic_macro.h: Do not use backlight_toggle if backlight is disabled Fixes #1199. --- diff --git a/quantum/dynamic_macro.h b/quantum/dynamic_macro.h index 7dca30f07..f242405de 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); backlight_toggle(); +#endif } /* Convenience macros used for retrieving the debug info. All of them