mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 17:29:50 +03:00
Arduino v7
This commit is contained in:
@@ -2905,8 +2905,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