mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 14:56:32 +00:00
usermod_v2_HttpPullLightControl: Fix build
This commit is contained in:
parent
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user