summaryrefslogtreecommitdiff
path: root/globals.h
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:00:50 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:00:50 -0500
commit963139a3517c094181086e901c203fbce38842f6 (patch)
treed56811e4a45ff063431582b3ae0f1838469e5bd8 /globals.h
parent16d6dea985b85ff596e98d4dc7f15f341ad6966b (diff)
Some flags must not be reset by Main_Rst. Put in separate struct.
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h13
1 files changed, 10 insertions, 3 deletions
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;