diff options
author | tmk <nobody@nowhere> | 2013-06-23 09:19:04 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-06-23 09:19:04 +0900 |
commit | 5a0415749d6cd6a095d9c3fbb335360ec5fa59e0 (patch) | |
tree | 7ed39e24295fbf853625a12fe273ea3ab4c7b202 /common/suspend.c | |
parent | 9de9d719527c7a8cac71d0bc49ba1d2d4f63cf06 (diff) | |
parent | 25ad212c4adae5a27dd2d5a4e9d6bcdfc17edb1b (diff) |
Merge branch 'Wraul-kmac'
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 6029fe7ffa..146b96d5cc 100644 --- a/common/suspend.c +++ b/common/suspend.c @@ -1,10 +1,14 @@ #include "suspend.h" #include "matrix.h" #include "action.h" +#include "backlight.h" void suspend_power_down(void) { +#ifdef BACKLIGHT_ENABLE + backlight_set(0); +#endif #ifndef NO_SUSPEND_POWER_DOWN // Enable watchdog to wake from MCU sleep cli(); @@ -50,6 +54,9 @@ void suspend_wakeup_init(void) // clear matrix and keyboard state matrix_init(); clear_keyboard(); +#ifdef BACKLIGHT_ENABLE + backlight_init(); +#endif } #ifndef NO_SUSPEND_POWER_DOWN |