summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 6a52beb272..8f832964b5 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -60,8 +60,10 @@
60#endif 60#endif
61 61
62#ifdef IAUDIO_X5 62#ifdef IAUDIO_X5
63#ifndef SIMULATOR
63extern void pcf50606_reset_timeout(void); 64extern void pcf50606_reset_timeout(void);
64#endif 65#endif
66#endif
65 67
66/* 68/*
67 * Define DEBUG_FILE to create a csv (spreadsheet) with battery information 69 * Define DEBUG_FILE to create a csv (spreadsheet) with battery information
@@ -1016,10 +1018,12 @@ void cancel_shutdown(void)
1016 logf("sys_cancel_shutdown()"); 1018 logf("sys_cancel_shutdown()");
1017 1019
1018#ifdef IAUDIO_X5 1020#ifdef IAUDIO_X5
1021#ifndef SIMULATOR
1019 /* TODO: Move some things to target/ tree */ 1022 /* TODO: Move some things to target/ tree */
1020 if (shutdown_timeout) 1023 if (shutdown_timeout)
1021 pcf50606_reset_timeout(); 1024 pcf50606_reset_timeout();
1022#endif 1025#endif
1026#endif
1023 1027
1024 shutdown_timeout = 0; 1028 shutdown_timeout = 0;
1025} 1029}