diff options
| -rw-r--r-- | firmware/rolo.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index c206bca..a8ea1cd 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -286,6 +286,12 @@ int rolo_load(const char* filename) return -1; } +#ifdef HAVE_STORAGE_FLUSH + lcd_puts(0, 1, "Flushing storage buffers"); + lcd_update(); + storage_flush(); +#endif + lcd_puts(0, 1, "Executing"); lcd_update(); #ifdef HAVE_REMOTE_LCD @@ -293,9 +299,6 @@ 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,13 +351,15 @@ int rolo_load(const char* filename) return -1; } - lcd_puts(0, 1, "Executing "); - lcd_update(); - #ifdef HAVE_STORAGE_FLUSH + lcd_puts(0, 1, "Flushing "); + lcd_update(); storage_flush(); #endif + lcd_puts(0, 1, "Executing "); + lcd_update(); + set_irq_level(HIGHEST_IRQ_LEVEL); /* Calling these 2 initialization routines was necessary to get the |