kopia lustrzana https://github.com/Aircoookie/WLED
usermod_v2_HttpPullLightControl: Fix build
rodzic
e76e9a3e1f
commit
1492f1ce89
|
@ -297,10 +297,10 @@ void HttpPullLightControl::handleResponse(String& responseStr) {
|
|||
// Check for valid JSON, otherwise we brick the program runtime
|
||||
if (jsonStr[0] == '{' || jsonStr[0] == '[') {
|
||||
// Attempt to deserialize the JSON response
|
||||
DeserializationError error = deserializeJson(doc, jsonStr);
|
||||
DeserializationError error = deserializeJson(*pDoc, jsonStr);
|
||||
if (error == DeserializationError::Ok) {
|
||||
// Get JSON object from th doc
|
||||
JsonObject obj = doc.as<JsonObject>();
|
||||
JsonObject obj = pDoc->as<JsonObject>();
|
||||
// Parse the object throuhg deserializeState (use CALL_MODE_NO_NOTIFY or OR CALL_MODE_DIRECT_CHANGE)
|
||||
deserializeState(obj, CALL_MODE_NO_NOTIFY);
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue