aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/avr
diff options
context:
space:
mode:
authorWilba6582 <Jason.S.Wiliams@gmail.com>2016-11-23 19:45:50 +1100
committerWilba6582 <Jason.S.Wiliams@gmail.com>2016-11-23 19:45:50 +1100
commitcf3926a8e13edb76193b8af25b497f9ef61161fd (patch)
treed426aa00833527e0c073630974496ea0bdbad83f /tmk_core/common/avr
parent5893f0fa1fcecfface25ce570f37e51031a14489 (diff)
downloadqmk_firmware-cf3926a8e13edb76193b8af25b497f9ef61161fd.tar.gz
qmk_firmware-cf3926a8e13edb76193b8af25b497f9ef61161fd.zip
Fixed NO_SUSPEND_POWER_DOWN handling
Diffstat (limited to 'tmk_core/common/avr')
-rw-r--r--tmk_core/common/avr/suspend.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index 939bda15e..0c81e8361 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -113,11 +113,6 @@ __attribute__ ((weak)) void matrix_power_up(void) {}
113__attribute__ ((weak)) void matrix_power_down(void) {} 113__attribute__ ((weak)) void matrix_power_down(void) {}
114bool suspend_wakeup_condition(void) 114bool suspend_wakeup_condition(void)
115{ 115{
116#ifdef BACKLIGHT_ENABLE
117#ifndef NO_SUSPEND_POWER_DOWN
118 backlight_set(0);
119#endif
120#endif
121 matrix_power_up(); 116 matrix_power_up();
122 matrix_scan(); 117 matrix_scan();
123 matrix_power_down(); 118 matrix_power_down();
@@ -135,7 +130,7 @@ void suspend_wakeup_init(void)
135#ifdef BACKLIGHT_ENABLE 130#ifdef BACKLIGHT_ENABLE
136 backlight_init(); 131 backlight_init();
137#endif 132#endif
138led_set(host_keyboard_leds()); 133 led_set(host_keyboard_leds());
139} 134}
140 135
141#ifndef NO_SUSPEND_POWER_DOWN 136#ifndef NO_SUSPEND_POWER_DOWN