mirror of
https://github.com/synthetos/g2.git
synced 2026-09-22 11:29:24 +08:00
Gcode wasn’t accepting + prefix for numbers. Fixed.
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ constexpr float c_atof_int_(char *&p_, int_type v_) {
|
||||
}
|
||||
|
||||
// Start portion
|
||||
constexpr float c_atof(char *&p_) { return (*p_ == '-') ? (c_atof_int_(++p_, 0) * -1.0) : (c_atof_int_(p_, 0)); }
|
||||
constexpr float c_atof(char *&p_) { return (*p_ == '-') ? (c_atof_int_(++p_, 0) * -1.0) : ( (*p_ == '+') ? c_atof_int_(++p_, 0) : (c_atof_int_(p_, 0))); }
|
||||
|
||||
|
||||
// It's assumed that the string buffer contains at lest count_ non-\0 chars
|
||||
|
||||
Reference in New Issue
Block a user