diff options
Diffstat (limited to 'instr-daemon.c')
-rw-r--r-- | instr-daemon.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index 89b6548..bac7680 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -252,16 +252,16 @@ int main(int argc, char **argv) g_free (message); } - /* FIXME - start-up delay here */ /* start-up delay */ LCD_write(3,0,"Warming up, please wait... "); - // delay by globals.Flash.turn_on_dly seconds - // while (not delayed enough) { - // message = g_strdup_printf ("%d", remaining seconds); - // LCD_write(3,27,message); - // g_free (message); - // sleep (?); - //} + + globals.startup_timer_value = sec_timer (); + long timer_count; + while ((timer_count=sec_timer()-globals.startup_timer_value) < (long)globals.Flash.turn_on_dly) { + message = g_strdup_printf ("%ld ", (long) globals.Flash.turn_on_dly - timer_count); + LCD_write(3,27,message); + g_free (message); + } LCD_write(3,27,"OK"); |