diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 44e43f0ea5..6a52beb272 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -59,6 +59,10 @@ | |||
59 | #include <time.h> | 59 | #include <time.h> |
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #ifdef IAUDIO_X5 | ||
63 | extern void pcf50606_reset_timeout(void); | ||
64 | #endif | ||
65 | |||
62 | /* | 66 | /* |
63 | * Define DEBUG_FILE to create a csv (spreadsheet) with battery information | 67 | * Define DEBUG_FILE to create a csv (spreadsheet) with battery information |
64 | * in it (one sample per minute). This is only for very low level debug. | 68 | * in it (one sample per minute). This is only for very low level debug. |
@@ -1010,6 +1014,13 @@ void sys_poweroff(void) | |||
1010 | void cancel_shutdown(void) | 1014 | void cancel_shutdown(void) |
1011 | { | 1015 | { |
1012 | logf("sys_cancel_shutdown()"); | 1016 | logf("sys_cancel_shutdown()"); |
1017 | |||
1018 | #ifdef IAUDIO_X5 | ||
1019 | /* TODO: Move some things to target/ tree */ | ||
1020 | if (shutdown_timeout) | ||
1021 | pcf50606_reset_timeout(); | ||
1022 | #endif | ||
1023 | |||
1013 | shutdown_timeout = 0; | 1024 | shutdown_timeout = 0; |
1014 | } | 1025 | } |
1015 | 1026 | ||