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 @@ #endif #ifdef IAUDIO_X5 +#ifndef SIMULATOR extern void pcf50606_reset_timeout(void); #endif +#endif /* * Define DEBUG_FILE to create a csv (spreadsheet) with battery information @@ -1016,9 +1018,11 @@ void cancel_shutdown(void) logf("sys_cancel_shutdown()"); #ifdef IAUDIO_X5 +#ifndef SIMULATOR /* TODO: Move some things to target/ tree */ if (shutdown_timeout) pcf50606_reset_timeout(); +#endif #endif shutdown_timeout = 0;