summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 899e103d59..a2017a76fd 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -1123,6 +1123,7 @@ void powermgmt_init(void)
1123 1123
1124void sys_poweroff(void) 1124void sys_poweroff(void)
1125{ 1125{
1126#ifndef BOOTLOADER
1126 logf("sys_poweroff()"); 1127 logf("sys_poweroff()");
1127 /* If the main thread fails to shut down the system, we will force a 1128 /* If the main thread fails to shut down the system, we will force a
1128 power off after an 20 second timeout - 28 seconds if recording */ 1129 power off after an 20 second timeout - 28 seconds if recording */
@@ -1139,6 +1140,7 @@ void sys_poweroff(void)
1139 } 1140 }
1140 1141
1141 queue_broadcast(SYS_POWEROFF, 0); 1142 queue_broadcast(SYS_POWEROFF, 0);
1143#endif /* BOOTLOADER */
1142} 1144}
1143 1145
1144void cancel_shutdown(void) 1146void cancel_shutdown(void)