From 963139a3517c094181086e901c203fbce38842f6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:00:50 -0500 Subject: Some flags must not be reset by Main_Rst. Put in separate struct. --- globals.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'globals.h') diff --git a/globals.h b/globals.h index 2fe6de7..96cab87 100644 --- a/globals.h +++ b/globals.h @@ -742,17 +742,23 @@ typedef struct { // note flags with non-zero default/reset values in globals.c // for example, do_check_settings=1 by default +// These flags are reset by Main_Rst typedef struct { int extended_ampl_min_max; int do_check_settings; int flash_writes_suspended; int force_output_fully_off; - int shutdown_started; - int flash_write_in_progress; - int startup_complete; } FlagStruct; +// These flags are NOT reset by Main_Rst, and default to 0 +typedef struct { + int shutdown_started; + int flash_write_in_progress; + int startup_complete; +} SysFlagStruct; + + typedef struct { long startup_timer_value; long last_activity_at[max_channels]; @@ -782,6 +788,7 @@ typedef struct { ErrorStruct Errors; FlagStruct Flags; FlagStruct DefaultFlags; + SysFlagStruct Sys; TimeStruct Timers; MenuStatusStruct MenuStatus; RemoteStruct Remote; -- cgit