diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index f1dd83ef52..c5f981d1f6 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #endif | 44 | #endif |
45 | #include "logf.h" | 45 | #include "logf.h" |
46 | #include "lcd-remote.h" | 46 | #include "lcd-remote.h" |
47 | #ifdef SIMULATOR | 47 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |
48 | #include <time.h> | 48 | #include <time.h> |
49 | #endif | 49 | #endif |
50 | 50 | ||
@@ -73,7 +73,7 @@ enum charge_state_type charge_state = DISCHARGING; | |||
73 | #endif | 73 | #endif |
74 | #endif /* CONFIG_CHARGING */ | 74 | #endif /* CONFIG_CHARGING */ |
75 | 75 | ||
76 | #ifndef SIMULATOR | 76 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
77 | static int shutdown_timeout = 0; | 77 | static int shutdown_timeout = 0; |
78 | /* | 78 | /* |
79 | * Average battery voltage and charger voltage, filtered via a digital | 79 | * Average battery voltage and charger voltage, filtered via a digital |
@@ -830,7 +830,7 @@ void cancel_shutdown(void) | |||
830 | 830 | ||
831 | shutdown_timeout = 0; | 831 | shutdown_timeout = 0; |
832 | } | 832 | } |
833 | #endif /* SIMULATOR */ | 833 | #endif /* PLATFORM_NATIVE */ |
834 | 834 | ||
835 | /* Send system battery level update events on reaching certain significant | 835 | /* Send system battery level update events on reaching certain significant |
836 | levels. This must be called after battery_percent has been updated. */ | 836 | levels. This must be called after battery_percent has been updated. */ |