mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
analogsensors, outputs PWM, DAC, digital
This commit is contained in:
@@ -526,6 +526,10 @@ bool Helpers::value2float(const char * v, float & value) {
|
||||
value = atof((char *)v);
|
||||
return true;
|
||||
}
|
||||
if (v[0] == '+' && (v[1] == '.' || (v[1] >= '0' && v[1] <= '9'))) {
|
||||
value = atof((char *)(v + 1));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user