|
@@ -144,10 +144,6 @@ public:
|
144
|
144
|
|
145
|
145
|
#define SEEN_TEST(L) TEST(codebits[LETTER_IND(L)], LETTER_BIT(L))
|
146
|
146
|
|
147
|
|
- // Seen any axis parameter
|
148
|
|
- // Optimized by moving 'X' up to index 24
|
149
|
|
- FORCE_INLINE bool seen_axis() { return codebits[3] || SEEN_TEST('E'); }
|
150
|
|
-
|
151
|
147
|
#else // !FASTER_GCODE_PARSER
|
152
|
148
|
|
153
|
149
|
// Code is found in the string. If not found, value_ptr is unchanged.
|
|
@@ -164,13 +160,13 @@ public:
|
164
|
160
|
|
165
|
161
|
#define SEEN_TEST(L) !!strchr(command_args, L)
|
166
|
162
|
|
167
|
|
- // Seen any axis parameter
|
168
|
|
- static bool seen_axis() {
|
169
|
|
- return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E');
|
170
|
|
- }
|
171
|
|
-
|
172
|
163
|
#endif // !FASTER_GCODE_PARSER
|
173
|
164
|
|
|
165
|
+ // Seen any axis parameter
|
|
166
|
+ static bool seen_axis() {
|
|
167
|
+ return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E');
|
|
168
|
+ }
|
|
169
|
+
|
174
|
170
|
// Populate all fields by parsing a single line of GCode
|
175
|
171
|
// This uses 54 bytes of SRAM to speed up seen/value
|
176
|
172
|
static void parse(char * p);
|