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))
|
#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
|
#else // !FASTER_GCODE_PARSER
|
||||||
|
|
||||||
// Code is found in the string. If not found, value_ptr is unchanged.
|
// 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)
|
#define SEEN_TEST(L) !!strchr(command_args, L)
|
||||||
|
|
||||||
|
#endif // !FASTER_GCODE_PARSER
|
||||||
|
|
||||||
// Seen any axis parameter
|
// Seen any axis parameter
|
||||||
static bool seen_axis() {
|
static bool seen_axis() {
|
||||||
return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E');
|
return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E');
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // !FASTER_GCODE_PARSER
|
|
||||||
|
|
||||||
// Populate all fields by parsing a single line of GCode
|
// Populate all fields by parsing a single line of GCode
|
||||||
// This uses 54 bytes of SRAM to speed up seen/value
|
// This uses 54 bytes of SRAM to speed up seen/value
|
||||||
static void parse(char * p);
|
static void parse(char * p);
|
||||||
|
Loading…
Reference in New Issue
Block a user