diff options
-rw-r--r-- | firmware/rolo.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index c7927978bd..c206bca589 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -293,6 +293,9 @@ int rolo_load(const char* filename) lcd_remote_update(); #endif adc_close(); +#ifdef HAVE_STORAGE_FLUSH + storage_flush(); +#endif #ifdef CPU_ARM /* Should do these together since some ARM version should never have @@ -348,6 +351,10 @@ int rolo_load(const char* filename) lcd_puts(0, 1, "Executing "); lcd_update(); +#ifdef HAVE_STORAGE_FLUSH + storage_flush(); +#endif + set_irq_level(HIGHEST_IRQ_LEVEL); /* Calling these 2 initialization routines was necessary to get the @@ -363,9 +370,6 @@ 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 */ |