summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2017-05-05 00:11:24 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2017-05-05 00:11:24 +0200
commita1e156a3d20e10134ac01b4cc2eaf2c92c0d2f23 (patch)
tree55eb45b7a95b9d5cc35eca56ef0a6236c5dac824 /quantum
parent10a7cd7e5ae1affe226423dd94c6443f8cf64e22 (diff)
dynamic_macro.h: Do not use backlight_toggle if backlight is disabled
Fixes #1199.
Diffstat (limited to 'quantum')
-rw-r--r--quantum/dynamic_macro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/dynamic_macro.h b/quantum/dynamic_macro.h
index 7dca30f076..f242405def 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