diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:00:50 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:00:50 -0500 |
commit | 963139a3517c094181086e901c203fbce38842f6 (patch) | |
tree | d56811e4a45ff063431582b3ae0f1838469e5bd8 /instr-daemon.c | |
parent | 16d6dea985b85ff596e98d4dc7f15f341ad6966b (diff) |
Some flags must not be reset by Main_Rst. Put in separate struct.
Diffstat (limited to 'instr-daemon.c')
-rw-r--r-- | instr-daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index 58bff70..ea5f2b6 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -327,7 +327,7 @@ static gboolean finish_boot (void) // FIXME - self-cal here - or in thread beside user sessions? - globals.Flags.startup_complete = 1; + globals.Sys.startup_complete = 1; return FALSE; // no more calls to this function are needed } @@ -336,9 +336,9 @@ static gboolean periodic_poll (void) { if (globals.HWDetect.beaglebone && bus_getpin (POWER_FAIL)) { - globals.Flags.shutdown_started = TRUE; + globals.Sys.shutdown_started = TRUE; - while (globals.Flags.flash_write_in_progress) { + while (globals.Sys.flash_write_in_progress) { g_usleep(1000); } @@ -367,7 +367,7 @@ static gboolean periodic_poll (void) exit(0); } - if (globals.Flags.startup_complete) { + if (globals.Sys.startup_complete) { int i, output_on_time_so_far; for (i=0; i<(globals.Flash.ChanKey_output_state?globals.Flash.channels:1); ++i) { |