summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 1f945c5431..a0817d7e27 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -297,12 +297,13 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
297 splashf(0, "%s %s", str(LANG_WARNING_BATTERY_EMPTY), 297 splashf(0, "%s %s", str(LANG_WARNING_BATTERY_EMPTY),
298 str(LANG_SHUTTINGDOWN)); 298 str(LANG_SHUTTINGDOWN));
299 } 299 }
300 300#if CONFIG_CODEC != SWCODEC
301 if (global_settings.fade_on_stop 301 if (global_settings.fade_on_stop
302 && (audio_stat & AUDIO_STATUS_PLAY)) 302 && (audio_stat & AUDIO_STATUS_PLAY))
303 { 303 {
304 fade(false, false); 304 fade(false, false);
305 } 305 }
306#endif
306 307
307 if (batt_safe) /* do not save on critical battery */ 308 if (batt_safe) /* do not save on critical battery */
308 { 309 {
@@ -380,8 +381,10 @@ bool list_stop_handler(void)
380 { 381 {
381 if (!global_settings.party_mode) 382 if (!global_settings.party_mode)
382 { 383 {
384#if CONFIG_CODEC != SWCODEC
383 if (global_settings.fade_on_stop) 385 if (global_settings.fade_on_stop)
384 fade(false, false); 386 fade(false, false);
387#endif
385 bookmark_autobookmark(true); 388 bookmark_autobookmark(true);
386 audio_stop(); 389 audio_stop();
387 ret = true; /* bookmarking can make a refresh necessary */ 390 ret = true; /* bookmarking can make a refresh necessary */