Unmount disks explicitly in clean_shutdown and in rolo_load. --- apps/misc.c | 2 ++ firmware/rolo.c | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/apps/misc.c b/apps/misc.c index 94b2de4..8f96761 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -42,6 +42,7 @@ #include "mp3_playback.h" #include "settings.h" #include "storage.h" +#include "disk.h" #include "ata_idle_notify.h" #include "kernel.h" #include "power.h" @@ -364,6 +365,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) eeprom_settings_store(); } #endif + disk_unmount_all(); } #ifdef HAVE_DIRCACHE else diff --git a/firmware/rolo.c b/firmware/rolo.c index 078a4e9..76ac7b6 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -33,6 +33,7 @@ #include "string.h" #include "buffer.h" #include "storage.h" +#include "disk.h" #include "rolo.h" #ifdef MI4_FORMAT @@ -283,6 +284,7 @@ int rolo_load(const char* filename) return -1; } + disk_unmount_all(); #ifdef HAVE_STORAGE_FLUSH lcd_puts(0, 1, "Flushing storage buffers"); lcd_update(); @@ -350,6 +352,7 @@ int rolo_load(const char* filename) return -1; } + disk_unmount_all(); #ifdef HAVE_STORAGE_FLUSH lcd_puts(0, 1, "Flushing "); lcd_update(); -- 1.7.1