summaryrefslogtreecommitdiff
path: root/tmk_core/common/avr
diff options
context:
space:
mode:
authorIBNobody <protospherex@gmail.com>2016-03-28 16:21:09 -0500
committerIBNobody <protospherex@gmail.com>2016-03-28 16:21:09 -0500
commita70f43967283498dc01cbfc534819ac9da80f10b (patch)
tree98e3430fa2e1bb285236d4e6a3c151080961ebca /tmk_core/common/avr
parent577971ab07a49405e1dcd8e5f75b3ecb87e710b9 (diff)
Added command to turn LED indicators off while sleeping
Diffstat (limited to 'tmk_core/common/avr')
-rw-r--r--tmk_core/common/avr/suspend.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index caf0b06254..c07c2801d5 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -66,9 +66,12 @@ static void power_down(uint8_t wdto)
wdt_intr_enable(wdto);
#ifdef BACKLIGHT_ENABLE
-backlight_set(0);
+ backlight_set(0);
#endif
+ // Turn off LED indicators
+ led_set(0);
+
// TODO: more power saving
// See PicoPower application note
// - I/O port input with pullup