diff options
author | Wraul <wraul@dbox.se> | 2013-05-30 20:24:39 +0200 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-06-22 17:23:36 +0900 |
commit | 1eb8523e9506c752fb726208d8853a82f06e6659 (patch) | |
tree | 999363ab141da73f3e59f2edf7d2778b298aef5f /common/suspend.c | |
parent | 9de9d719527c7a8cac71d0bc49ba1d2d4f63cf06 (diff) |
Add support for backlight
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 |