]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/avr/suspend.c
Fixed NO_SUSPEND_POWER_DOWN handling
[qmk_firmware.git] / tmk_core / common / avr / suspend.c
index 939bda15eb700c107bd48f45f8348dac725c4fa5..0c81e8361213af2221c93883801e649ea364a5a7 100644 (file)
@@ -113,11 +113,6 @@ __attribute__ ((weak)) void matrix_power_up(void) {}
 __attribute__ ((weak)) void matrix_power_down(void) {}
 bool suspend_wakeup_condition(void)
 {
-#ifdef BACKLIGHT_ENABLE
-#ifndef NO_SUSPEND_POWER_DOWN
-    backlight_set(0);
-#endif
-#endif
     matrix_power_up();
     matrix_scan();
     matrix_power_down();
@@ -135,7 +130,7 @@ void suspend_wakeup_init(void)
 #ifdef BACKLIGHT_ENABLE
     backlight_init();
 #endif
-led_set(host_keyboard_leds());
+       led_set(host_keyboard_leds());
 }
 
 #ifndef NO_SUSPEND_POWER_DOWN