From 88f0a233a5fef57c9f0efc73103fbe7ef5721a99 Mon Sep 17 00:00:00 2001 From: Donald Delmar Davis Date: Fri, 20 Oct 2017 21:53:06 -0700 Subject: Move machine state constants to Machine.h --- Arduino/ems-light/Common.h | 33 -------------- ems-light.xcworkspace/contents.xcworkspacedata | 48 +++++++++++---------- .../don.xcuserdatad/UserInterfaceState.xcuserstate | Bin 8255 -> 9334 bytes 3 files changed, 26 insertions(+), 55 deletions(-) diff --git a/Arduino/ems-light/Common.h b/Arduino/ems-light/Common.h index 51e4f40..0ef6dcd 100755 --- a/Arduino/ems-light/Common.h +++ b/Arduino/ems-light/Common.h @@ -71,36 +71,3 @@ #define FAKE_A_FLOAT(_f) int((_f)), int(abs((_f) - int(_f))*100) -// This stuff probably belongs in Machine.h - -#define STATENAMELEN 25 - -enum machine_states { - STATE_OFF, - STATE_SELF_TEST_INIT, - STATE_WARM_UP, - STATE_RUN_MODE, - STATE_SHUTDOWN, - STATE_POST_FAILURE, - STATE_E_SHUTDOWN, - STATE_MANUAL_MODE, - STATE_DIAGNOSTICS_MODE, - STATE_UNKNOWN_STATE, -}; - -#define NSTATES (STATE_UNKNOWN_STATE) - -#define STATENAMES \ -"OFF\000 ",\ -"SELF TEST INIT\000 ",\ -"WARMUP\000 ",\ -"NORMAL OPERATION\000 ",\ -"SHUT DOWN\000 ",\ -"POST FAILURE\000 ",\ -"EMERGENCY STOP\000 ",\ -"MANUAL MODE ",\ -"DIAGNOSTICS MODE\000 ",\ -"UNKNOWN\000 " - -#endif // EMS_COMMON_H - diff --git a/ems-light.xcworkspace/contents.xcworkspacedata b/ems-light.xcworkspace/contents.xcworkspacedata index 2b2b1bd..509c0af 100644 --- a/ems-light.xcworkspace/contents.xcworkspacedata +++ b/ems-light.xcworkspace/contents.xcworkspacedata @@ -5,21 +5,8 @@ location = "group:Arduino" name = "Arduino"> - - - - - - - - + location = "group:ems-light" + name = "ems-light"> @@ -30,10 +17,7 @@ location = "group:Common.h"> - - + location = "group:ems-light.ino"> @@ -50,9 +34,6 @@ - - @@ -62,6 +43,16 @@ + + + + + + @@ -69,6 +60,19 @@ location = "group:Thermocouple.h"> + + + + + + + + diff --git a/ems-light.xcworkspace/xcuserdata/don.xcuserdatad/UserInterfaceState.xcuserstate b/ems-light.xcworkspace/xcuserdata/don.xcuserdatad/UserInterfaceState.xcuserstate index 27a09ca..5d7a4ca 100644 Binary files a/ems-light.xcworkspace/xcuserdata/don.xcuserdatad/UserInterfaceState.xcuserstate and b/ems-light.xcworkspace/xcuserdata/don.xcuserdatad/UserInterfaceState.xcuserstate differ -- cgit v1.2.3