Gcode wasn’t accepting + prefix for numbers. Fixed.

This commit is contained in:
Rob Giseburt
2017-01-23 17:05:35 -06:00
parent 015e9060d9
commit 2a52efa7d4
+1 -1
View File
@@ -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