summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-03-30 23:49:03 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-04-04 11:07:04 +0200
commit26beb30c155aebc5e6e50366f1cfa34300a8c63a (patch)
tree5e42ebc602dbd879c7a29503547421b955611ec4 /apps/misc.c
parent47d6d268c031dacb60929a21f6cceb09400c5e46 (diff)
downloadrockbox-26beb30c155aebc5e6e50366f1cfa34300a8c63a.tar.gz
rockbox-26beb30c155aebc5e6e50366f1cfa34300a8c63a.zip
Save bookmark and settings on shutdown at low battery level on players without HD
Change-Id: I9b9bbf0568de9a82107b0be3b42c3fdba0a0a27d
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 037daf0cac..15e1b6ecad 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -322,7 +322,9 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
322 } 322 }
323#endif 323#endif
324 324
325#ifdef HAVE_DISK_STORAGE
325 if (batt_safe) /* do not save on critical battery */ 326 if (batt_safe) /* do not save on critical battery */
327#endif
326 { 328 {
327#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC 329#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC
328 if (audio_stat & AUDIO_STATUS_RECORD) 330 if (audio_stat & AUDIO_STATUS_RECORD)
@@ -376,7 +378,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
376 } 378 }
377#endif 379#endif
378 } 380 }
379#ifdef HAVE_DIRCACHE 381#if defined(HAVE_DIRCACHE) && defined(HAVE_DISK_STORAGE)
380 else 382 else
381 dircache_disable(); 383 dircache_disable();
382#endif 384#endif