diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-06 12:11:57 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-12-06 12:11:57 +0000 |
commit | 3e24665c417c2dd7dc292c9f12efae4e6544aa11 (patch) | |
tree | f769a05cd2ad2c4335dd9019c7cfbf787ceafe80 /firmware/ata_idle_notify.c | |
parent | 761122dcff4158b68a0d3f977cff554c4e8365e3 (diff) |
Fix settings not saving to disk correctly, (fixes FS#6408)
Stop playback.c requesting a rebuffer while not playing
Shutting down from inside the menu will now save settings to disk, and
entering the main menu will not force a setting save unless a setting
actually changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11674 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/ata_idle_notify.c')
-rw-r--r-- | firmware/ata_idle_notify.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/ata_idle_notify.c b/firmware/ata_idle_notify.c index 17adbc1192..1fc6605ac6 100644 --- a/firmware/ata_idle_notify.c +++ b/firmware/ata_idle_notify.c @@ -77,8 +77,11 @@ bool call_ata_idle_notifys(bool force) int i; static int lock_until = 0; ata_idle_notify function; - if (!force && TIME_BEFORE(current_tick,lock_until) ) - return false; + if (!force) + { + if (TIME_BEFORE(current_tick,lock_until) ) + return false; + } lock_until = current_tick + 30*HZ; for (i = 0; i < MAX_ATA_CALLBACKS; i++) |