diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 3dd4c607a2..377c34a628 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -424,6 +424,7 @@ static void battery_status_update(void) | |||
424 | * 1) The USB is connected | 424 | * 1) The USB is connected |
425 | * 2) The charger is connected | 425 | * 2) The charger is connected |
426 | * 3) We are recording, or recording with pause | 426 | * 3) We are recording, or recording with pause |
427 | * 4) The radio is playing | ||
427 | */ | 428 | */ |
428 | static void handle_auto_poweroff(void) | 429 | static void handle_auto_poweroff(void) |
429 | { | 430 | { |
@@ -442,7 +443,7 @@ static void handle_auto_poweroff(void) | |||
442 | 443 | ||
443 | if(timeout && | 444 | if(timeout && |
444 | #ifdef CONFIG_TUNER | 445 | #ifdef CONFIG_TUNER |
445 | (!radio_powered()) && | 446 | (!(get_radio_status() & FMRADIO_PLAYING)) && |
446 | #endif | 447 | #endif |
447 | !usb_inserted() && | 448 | !usb_inserted() && |
448 | ((audio_stat == 0) || | 449 | ((audio_stat == 0) || |