Drop len parameter from parse_number() (#2883)

This commit is contained in:
Oxan van Leeuwen
2021-12-07 20:46:25 +01:00
committed by GitHub
parent 2253d4bc16
commit 6fe4ff7f85
2 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ void EZOSensor::loop() {
if (buf[i] == ',')
buf[i] = '\0';
float val = parse_number<float>((char *) &buf[1], sizeof(buf) - 2).value_or(0);
float val = parse_number<float>((char *) &buf[1]).value_or(0);
this->publish_state(val);
}