mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev2
This commit is contained in:
@@ -2933,8 +2933,8 @@ bool Thermostat::set_switchtime(const char * value, const uint16_t type_id, char
|
||||
uint8_t time = 0x91; // invalid
|
||||
|
||||
if (value[0] == '{') {
|
||||
StaticJsonDocument<EMSESP_JSON_SIZE_SMALL> doc;
|
||||
DeserializationError error = deserializeJson(doc, value);
|
||||
JsonDocument doc;
|
||||
DeserializationError error = deserializeJson(doc, value);
|
||||
if (error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user