diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index d69217e5b2..ca7b83ef3f 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -639,7 +639,8 @@ static bool dirbrowse(void) | |||
639 | /* Stop the music if it is playing */ | 639 | /* Stop the music if it is playing */ |
640 | if(audio_status()) | 640 | if(audio_status()) |
641 | audio_stop(); | 641 | audio_stop(); |
642 | #if (CONFIG_KEYPAD == RECORDER_PAD) && !defined(HAVE_SW_POWEROFF) | 642 | #if defined(HAVE_CHARGING) && \ |
643 | (CONFIG_KEYPAD == RECORDER_PAD) && !defined(HAVE_SW_POWEROFF) | ||
643 | else { | 644 | else { |
644 | if (!charger_inserted()) { | 645 | if (!charger_inserted()) { |
645 | if(shutdown_screen()) | 646 | if(shutdown_screen()) |