diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 523a62007a..6366ea9bd0 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -467,7 +467,7 @@ static void handle_auto_poweroff(void) | |||
467 | if(TIME_AFTER(current_tick, sleeptimer_endtick)) | 467 | if(TIME_AFTER(current_tick, sleeptimer_endtick)) |
468 | { | 468 | { |
469 | audio_stop(); | 469 | audio_stop(); |
470 | if (!usb_inserted() | 470 | if (usb_inserted() |
471 | #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) | 471 | #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) |
472 | || ((charger_input_state == CHARGER) || | 472 | || ((charger_input_state == CHARGER) || |
473 | (charger_input_state == CHARGER_PLUGGED)) | 473 | (charger_input_state == CHARGER_PLUGGED)) |