mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 16:01:57 +08:00
#7773 - Fixed GCodeReader::parse_line_internal() to skip whitespaces between axis digit and axis value
This commit is contained in:
parent
2cc20594a4
commit
4b4d1c2f2a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user