diff options
| -rw-r--r-- | firmware/drivers/button.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index b4ab720..b0f8aa1 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -131,7 +131,14 @@ static void button_tick(void) !charger_inserted() && #endif repeat_count > POWEROFF_COUNT) + { queue_post(&button_queue, SYS_POWEROFF, NULL); + + /* Safety net for players without hardware + poweroff */ + if(repeat_count > POWEROFF_COUNT * 10) + power_off(); + } #endif } } |