summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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