Fix has_value with FASTER_GCODE_PARSER
This commit is contained in:
parent
3ab4736ac9
commit
1b84807eb0
2 changed files with 19 additions and 11 deletions
|
|
@ -189,14 +189,7 @@ void GCodeParser::parse(char *p) {
|
|||
|
||||
while (*p == ' ') p++; // Skip spaces between parameters & values
|
||||
|
||||
const bool has_num = NUMERIC(p[0]) // [0-9]
|
||||
|| (p[0] == '.' && NUMERIC(p[1])) // .[0-9]
|
||||
|| (
|
||||
(p[0] == '-' || p[0] == '+') && ( // [-+]
|
||||
NUMERIC(p[1]) // [0-9]
|
||||
|| (p[1] == '.' && NUMERIC(p[2])) // .[0-9]
|
||||
)
|
||||
);
|
||||
const bool has_num = valid_float(p);
|
||||
|
||||
#if ENABLED(DEBUG_GCODE_PARSER)
|
||||
if (debug) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue