Finish the solution for #7166
This commit is contained in:
parent
6c97c5595c
commit
30b327d24c
|
@ -144,10 +144,6 @@ public:
|
|||
|
||||
#define SEEN_TEST(L) TEST(codebits[LETTER_IND(L)], LETTER_BIT(L))
|
||||
|
||||
// Seen any axis parameter
|
||||
// Optimized by moving 'X' up to index 24
|
||||
FORCE_INLINE bool seen_axis() { return codebits[3] || SEEN_TEST('E'); }
|
||||
|
||||
#else // !FASTER_GCODE_PARSER
|
||||
|
||||
// Code is found in the string. If not found, value_ptr is unchanged.
|
||||
|
@ -164,13 +160,13 @@ public:
|
|||
|
||||
#define SEEN_TEST(L) !!strchr(command_args, L)
|
||||
|
||||
// Seen any axis parameter
|
||||
static bool seen_axis() {
|
||||
return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E');
|
||||
}
|
||||
|
||||
#endif // !FASTER_GCODE_PARSER
|
||||
|
||||
// Seen any axis parameter
|
||||
static bool seen_axis() {
|
||||
return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E');
|
||||
}
|
||||
|
||||
// Populate all fields by parsing a single line of GCode
|
||||
// This uses 54 bytes of SRAM to speed up seen/value
|
||||
static void parse(char * p);
|
||||
|
|
Loading…
Reference in a new issue