dynamic_macro.h: Do not use backlight_toggle if backlight is disabled

Fixes #1199.
daktil_thumb_popravljen
Wojciech Siewierski 2017-05-05 00:11:24 +02:00
parent 10a7cd7e5a
commit a1e156a3d2
1 changed files with 2 additions and 0 deletions

View 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