summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-22 13:30:17 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-22 13:30:17 -0400
commitfb5c5c55c52772f3117be92c645646e927c78979 (patch)
treed456b8b75f7834f62f39b39be9b518f1e1790d24
parentf9385de372e46de69f2fdd691d0f7eebe19bef8f (diff)
same flash init lcd message as zworld code
-rw-r--r--flash.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/flash.c b/flash.c
index 6eaf6aa..340c609 100644
--- a/flash.c
+++ b/flash.c
@@ -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! ");
}
}