60
60
// NOTE: The number of SYSTEM_GROUP or SR_DEFAULTS elements cannot exceed CMD_MAX_OBJECTS
61
61
#define GROUP_PREFIXES "x,y,z,a,b,c,1,2,3,4,g54,g55,g56,g57,g58,g59"
62
62
#define SYSTEM_GROUP "fv,fb,si,gpl,gun,gco,gpa,gdi,ea,ja,ml,ma,mt,ic,il,ec,ee,ex"
63
- #define SR_DEFAULTS "line","posx","posy","posz","posa","feed","vel","unit","coor","dist","frmo","momo","stat","mots","hold"
63
+ #define SR_DEFAULTS "line","posx","posy","posz","posa","feed","vel","unit","coor","dist","frmo","momo","stat"
64
+ //#define SR_DEFAULTS "line","posx","posy","posz","posa","feed","vel","unit","coor","dist","frmo","momo","stat","mots","hold"
64
65
#define DONT_PERSIST "gc,te,de" // commands that should not be persisted (comma separated)
65
- #define DONT_INITIALIZE "gc,sr,te,he,de"
66
+ #define DONT_INITIALIZE "gc,sr,te,he,de" // commands that should not be initialized
66
67
67
68
enum cmdValueType { // value typing for config and JSON
68
69
VALUE_TYPE_ERROR = -2 , // was unable to process the record
@@ -84,6 +85,7 @@ struct cmdObject { // depending on use, not all elements may be populated
84
85
char token [CMD_TOKEN_LEN + 1 ]; // mnemonic token
85
86
char vstring [CMD_STRING_LEN + 1 ]; // value string (see note below)
86
87
}; // OK, so it's not REALLY an object
88
+ typedef struct cmdObject cmdObj ; // handy typedef for command onjects
87
89
88
90
// The cmdObj vstring field is overloaded to save RAM. Its primary use is to
89
91
// carry a value-type of string. It is also used in some preliminary operations
@@ -93,7 +95,6 @@ struct cmdObject { // depending on use, not all elements may be populated
93
95
#define friendly_name vstring // used here as a friendly name field
94
96
#define group_token vstring // used here as a group token field
95
97
96
- typedef struct cmdObject cmdObj ;
97
98
typedef uint8_t (* fptrCmd )(cmdObj * cmd );// required for cmd table access
98
99
typedef void (* fptrPrint )(cmdObj * cmd ); // required for PROGMEM access
99
100
0 commit comments