summaryrefslogtreecommitdiff
path: root/instr-daemon.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:02:24 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:02:24 -0500
commit22d19c0d2a9d56ad560b44cfcb65b69bf4ca278c (patch)
treef9441bbf2843b341c1f2c875f1801b0af0b65241 /instr-daemon.c
parent4d3d806f59d13d8965fd0488cf63fc4aca7553d9 (diff)
startup timer
Diffstat (limited to 'instr-daemon.c')
-rw-r--r--instr-daemon.c16
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");