summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index b0f8aa1e4d..4d1652984b 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -132,7 +132,9 @@ static void button_tick(void)
#endif
repeat_count > POWEROFF_COUNT)
{
- queue_post(&button_queue, SYS_POWEROFF, NULL);
+ /* Tell the main thread that it's time to
+ power off */
+ sys_poweroff();
/* Safety net for players without hardware
poweroff */