From 178337970e7e09c68d3b4ff1b7bce61fb45ff321 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 11 Oct 2009 02:06:42 +0000 Subject: Nano2G - call storage_flush() before rolo_restart() to ensure FTL is flushed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23087 a1c6a512-1295-4272-9138-f99709370657 --- firmware/rolo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/rolo.c b/firmware/rolo.c index faceef3..37834b3 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -33,6 +33,7 @@ #include "adc.h" #include "string.h" #include "buffer.h" +#include "storage.h" #include "rolo.h" #ifdef MI4_FORMAT @@ -363,6 +364,9 @@ int rolo_load(const char* filename) PAIOR = 0x0FA0; #endif #endif +#ifdef HAVE_STORAGE_FLUSH + storage_flush(); +#endif rolo_restart(audiobuf, ramstart, length); return 0; /* this is never reached */ -- cgit v1.1