#7773 - Fixed GCodeReader::parse_line_internal() to skip whitespaces between axis digit and axis value

This commit is contained in:
enricoturri1966 2022-01-19 12:08:00 +01:00
parent 2cc20594a4
commit 4b4d1c2f2a

View File

@ -74,7 +74,7 @@ const char* GCodeReader::parse_line_internal(const char *ptr, const char *end, G
if (axis != NUM_AXES_WITH_UNKNOWN) {
// Try to parse the numeric value.
double v;
auto [pend, ec] = fast_float::from_chars(++ c, end, v);
auto [pend, ec] = fast_float::from_chars(c, end, v);
if (pend != c && is_end_of_word(*pend)) {
// The axis value has been parsed correctly.
if (axis != UNKNOWN_AXIS)