Save bookmark and settings on shutdown at low battery level on players without HD

Change-Id: I9b9bbf0568de9a82107b0be3b42c3fdba0a0a27d
This commit is contained in:
Mihail Zenkov 2016-03-30 23:49:03 +00:00 committed by Gerrit Rockbox
parent 47d6d268c0
commit 26beb30c15

View file

@ -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