diff options
-rw-r--r-- | flash.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -290,9 +290,6 @@ static void initFlashValues(FlashStruct *mem) base_number=11; - g_print_debug ("initializing flash memory\n"); - LCD_write(0,0,"Initialize Flash Memory ..."); - mem->flash_start=1; mem->turn_on_dly=2; @@ -731,7 +728,6 @@ static void initFlashValues(FlashStruct *mem) mem->ampl_zero_equiv[1]=0.001; */ - LCD_write(1,0,"Flash Init, Done! "); } @@ -743,6 +739,13 @@ void initFlash(FlashStruct *mem, int starting_location) (mem->fully_programmed == Not_Programmed) || ((starting_location > 0) && (starting_location < sizeof(*mem))) ) { + g_print_debug ("initializing flash memory\n"); + LCD_write(0,0,"Initialize Flash Memory ..."); + + gchar *message = g_strdup_printf ("Initialize Flash Memory, %d - %ld", starting_location, sizeof(*mem)); + LCD_write(0,0,message); + g_free (message); + // uninitialized device! initFlashValues(mem); @@ -752,6 +755,8 @@ void initFlash(FlashStruct *mem, int starting_location) if (starting_location > 0) { readUserBlock(mem); } + + LCD_write(1,0,"Flash Init, Done! "); } } |