diff options
| author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2017-05-05 00:11:24 +0200 |
|---|---|---|
| committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2017-05-05 00:11:24 +0200 |
| commit | a1e156a3d20e10134ac01b4cc2eaf2c92c0d2f23 (patch) | |
| tree | 55eb45b7a95b9d5cc35eca56ef0a6236c5dac824 /quantum/dynamic_macro.h | |
| parent | 10a7cd7e5ae1affe226423dd94c6443f8cf64e22 (diff) | |
| download | qmk_firmware-a1e156a3d20e10134ac01b4cc2eaf2c92c0d2f23.tar.gz qmk_firmware-a1e156a3d20e10134ac01b4cc2eaf2c92c0d2f23.zip | |
dynamic_macro.h: Do not use backlight_toggle if backlight is disabled
Fixes #1199.
Diffstat (limited to 'quantum/dynamic_macro.h')
| -rw-r--r-- | quantum/dynamic_macro.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
| 48 | /* Blink the LEDs to notify the user about some event. */ | 48 | /* Blink the LEDs to notify the user about some event. */ |
| 49 | void dynamic_macro_led_blink(void) | 49 | void dynamic_macro_led_blink(void) |
| 50 | { | 50 | { |
| 51 | #ifdef BACKLIGHT_ENABLE | ||
| 51 | backlight_toggle(); | 52 | backlight_toggle(); |
| 52 | _delay_ms(100); | 53 | _delay_ms(100); |
| 53 | backlight_toggle(); | 54 | backlight_toggle(); |
| 55 | #endif | ||
| 54 | } | 56 | } |
| 55 | 57 | ||
| 56 | /* Convenience macros used for retrieving the debug info. All of them | 58 | /* Convenience macros used for retrieving the debug info. All of them |
