diff options
| author | IBNobody <protospherex@gmail.com> | 2016-03-28 16:21:09 -0500 |
|---|---|---|
| committer | IBNobody <protospherex@gmail.com> | 2016-03-28 16:21:09 -0500 |
| commit | a70f43967283498dc01cbfc534819ac9da80f10b (patch) | |
| tree | 98e3430fa2e1bb285236d4e6a3c151080961ebca | |
| parent | 577971ab07a49405e1dcd8e5f75b3ecb87e710b9 (diff) | |
| download | qmk_firmware-a70f43967283498dc01cbfc534819ac9da80f10b.tar.gz qmk_firmware-a70f43967283498dc01cbfc534819ac9da80f10b.zip | |
Added command to turn LED indicators off while sleeping
| -rw-r--r-- | tmk_core/common/avr/suspend.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c index caf0b0625..c07c2801d 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) | |||
| 66 | wdt_intr_enable(wdto); | 66 | wdt_intr_enable(wdto); |
| 67 | 67 | ||
| 68 | #ifdef BACKLIGHT_ENABLE | 68 | #ifdef BACKLIGHT_ENABLE |
| 69 | backlight_set(0); | 69 | backlight_set(0); |
| 70 | #endif | 70 | #endif |
| 71 | 71 | ||
| 72 | // Turn off LED indicators | ||
| 73 | led_set(0); | ||
| 74 | |||
| 72 | // TODO: more power saving | 75 | // TODO: more power saving |
| 73 | // See PicoPower application note | 76 | // See PicoPower application note |
| 74 | // - I/O port input with pullup | 77 | // - I/O port input with pullup |
