diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:07:15 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:07:15 -0500 |
commit | a5e9ecff723e6df4c93c0047fcfd62c70b2b0fed (patch) | |
tree | a14172bfa61f7cea5e861aa93496316cf20e4b08 | |
parent | 2618734a24a971f28805bc85102272506cdf8191 (diff) |
don't show main menu in response to commands during turn-on delay
-rw-r--r-- | instr-daemon.c | 5 | ||||
-rw-r--r-- | menus.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index 62d24d8..be905ff 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -323,11 +323,12 @@ static gboolean finish_boot (void) I2C_Setup_Monitor(); - Show_Main_Menu(); - // FIXME - self-cal here - or in thread beside user sessions? globals.Sys.startup_complete = 1; + + Show_Main_Menu(); + return FALSE; // no more calls to this function are needed } @@ -259,6 +259,9 @@ void Update_Main_Menu_If_Visible(void) void Show_Main_Menu(void) { + + if (!globals.Sys.startup_complete) return; + GStaticMutex mutex = G_STATIC_MUTEX_INIT; g_static_mutex_lock (&mutex); // can be triggered simultaneously by local or remote users |