Bugfixes.

This commit is contained in:
Blaz Kristan
2021-12-03 21:09:53 +01:00
parent 737151ba09
commit 5c7e3c6bab
13 changed files with 2944 additions and 2287 deletions

View File

@@ -50,6 +50,7 @@ void parseNumber(const char* str, byte* val, byte minv, byte maxv)
bool getVal(JsonVariant elem, byte* val, byte vmin, byte vmax) {
if (elem.is<int>()) {
if (elem < 0) return false; //ignore e.g. {"ps":-1}
*val = elem;
return true;
} else if (elem.is<const char*>()) {