summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-29 17:24:32 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-29 17:24:32 +0000
commitf0622c930a9ff3e733b9621ae0c90c819550bf7e (patch)
treedc86f9c2e2c5cec54aa74ec66125011535fbdc87 /apps
parentdb7209616bdd0acc7cdf46a3aa9165d8268a0fbc (diff)
downloadrockbox-f0622c930a9ff3e733b9621ae0c90c819550bf7e.zip
rockbox-f0622c930a9ff3e733b9621ae0c90c819550bf7e.tar.gz
rockbox-f0622c930a9ff3e733b9621ae0c90c819550bf7e.tar.bz2
rockbox-f0622c930a9ff3e733b9621ae0c90c819550bf7e.tar.xz
Don't spinup the disk on pause if at least one method ensures the resume position to be saved, RTC or software poweroff.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6924 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/wps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/wps.c b/apps/wps.c
index dc9dd04..e6d7036 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -544,8 +544,8 @@ long wps_show(void)
else
audio_pause();
settings_save();
-#ifndef HAVE_RTC
- ata_flush();
+#if !defined(HAVE_RTC) && !defined(HAVE_SW_POWEROFF)
+ ata_flush(); /* make sure resume info is saved */
#endif
}
break;