diff options
Diffstat (limited to 'common/suspend.c')
| -rw-r--r-- | common/suspend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/suspend.c b/common/suspend.c index 6029fe7ff..146b96d5c 100644 --- a/common/suspend.c +++ b/common/suspend.c | |||
| @@ -1,10 +1,14 @@ | |||
| 1 | #include "suspend.h" | 1 | #include "suspend.h" |
| 2 | #include "matrix.h" | 2 | #include "matrix.h" |
| 3 | #include "action.h" | 3 | #include "action.h" |
| 4 | #include "backlight.h" | ||
| 4 | 5 | ||
| 5 | 6 | ||
| 6 | void suspend_power_down(void) | 7 | void suspend_power_down(void) |
| 7 | { | 8 | { |
| 9 | #ifdef BACKLIGHT_ENABLE | ||
| 10 | backlight_set(0); | ||
| 11 | #endif | ||
| 8 | #ifndef NO_SUSPEND_POWER_DOWN | 12 | #ifndef NO_SUSPEND_POWER_DOWN |
| 9 | // Enable watchdog to wake from MCU sleep | 13 | // Enable watchdog to wake from MCU sleep |
| 10 | cli(); | 14 | cli(); |
| @@ -50,6 +54,9 @@ void suspend_wakeup_init(void) | |||
| 50 | // clear matrix and keyboard state | 54 | // clear matrix and keyboard state |
| 51 | matrix_init(); | 55 | matrix_init(); |
| 52 | clear_keyboard(); | 56 | clear_keyboard(); |
| 57 | #ifdef BACKLIGHT_ENABLE | ||
| 58 | backlight_init(); | ||
| 59 | #endif | ||
| 53 | } | 60 | } |
| 54 | 61 | ||
| 55 | #ifndef NO_SUSPEND_POWER_DOWN | 62 | #ifndef NO_SUSPEND_POWER_DOWN |
