summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/wps.c b/apps/wps.c
index be0ad448dd..40c9194793 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -252,7 +252,6 @@ static bool update(void)
252 252
253 /* save resume data */ 253 /* save resume data */
254 if ( id3 && 254 if ( id3 &&
255 global_settings.resume &&
256 global_settings.resume_offset != id3->offset ) { 255 global_settings.resume_offset != id3->offset ) {
257 256
258 if (!playlist_get_resume_info(&global_settings.resume_index)) 257 if (!playlist_get_resume_info(&global_settings.resume_index))
@@ -391,7 +390,7 @@ long wps_show(void)
391 390
392 /* if another thread paused audio, we are probably in car mode, 391 /* if another thread paused audio, we are probably in car mode,
393 about to shut down. lets save the settings. */ 392 about to shut down. lets save the settings. */
394 if (paused && global_settings.resume) { 393 if (paused) {
395 settings_save(); 394 settings_save();
396#ifndef HAVE_RTC 395#ifndef HAVE_RTC
397 ata_flush(); 396 ata_flush();
@@ -544,12 +543,10 @@ long wps_show(void)
544 fade(0); 543 fade(0);
545 else 544 else
546 audio_pause(); 545 audio_pause();
547 if (global_settings.resume) { 546 settings_save();
548 settings_save();
549#ifndef HAVE_RTC 547#ifndef HAVE_RTC
550 ata_flush(); 548 ata_flush();
551#endif 549#endif
552 }
553 } 550 }
554 break; 551 break;
555 552