diff options
| author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-03-30 23:49:03 +0000 |
|---|---|---|
| committer | Gerrit Rockbox <gerrit@rockbox.org> | 2016-04-04 11:07:04 +0200 |
| commit | 26beb30c155aebc5e6e50366f1cfa34300a8c63a (patch) | |
| tree | 5e42ebc602dbd879c7a29503547421b955611ec4 | |
| parent | 47d6d268c031dacb60929a21f6cceb09400c5e46 (diff) | |
| download | rockbox-26beb30c155aebc5e6e50366f1cfa34300a8c63a.zip rockbox-26beb30c155aebc5e6e50366f1cfa34300a8c63a.tar.gz rockbox-26beb30c155aebc5e6e50366f1cfa34300a8c63a.tar.bz2 rockbox-26beb30c155aebc5e6e50366f1cfa34300a8c63a.tar.xz | |
Save bookmark and settings on shutdown at low battery level on players without HD
Change-Id: I9b9bbf0568de9a82107b0be3b42c3fdba0a0a27d
| -rw-r--r-- | apps/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c index 037daf0..15e1b6e 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -322,7 +322,9 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) } #endif +#ifdef HAVE_DISK_STORAGE if (batt_safe) /* do not save on critical battery */ +#endif { #if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC if (audio_stat & AUDIO_STATUS_RECORD) @@ -376,7 +378,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) } #endif } -#ifdef HAVE_DIRCACHE +#if defined(HAVE_DIRCACHE) && defined(HAVE_DISK_STORAGE) else dircache_disable(); #endif |