Skip to content

Commit 1492f1c

Browse files
committed
usermod_v2_HttpPullLightControl: Fix build
1 parent e76e9a3 commit 1492f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

usermods/usermod_v2_HttpPullLightControl/library.json.disabled renamed to usermods/usermod_v2_HttpPullLightControl/library.json

File renamed without changes.

usermods/usermod_v2_HttpPullLightControl/usermod_v2_HttpPullLightControl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ void HttpPullLightControl::handleResponse(String& responseStr) {
297297
// Check for valid JSON, otherwise we brick the program runtime
298298
if (jsonStr[0] == '{' || jsonStr[0] == '[') {
299299
// Attempt to deserialize the JSON response
300-
DeserializationError error = deserializeJson(doc, jsonStr);
300+
DeserializationError error = deserializeJson(*pDoc, jsonStr);
301301
if (error == DeserializationError::Ok) {
302302
// Get JSON object from th doc
303-
JsonObject obj = doc.as<JsonObject>();
303+
JsonObject obj = pDoc->as<JsonObject>();
304304
// Parse the object throuhg deserializeState (use CALL_MODE_NO_NOTIFY or OR CALL_MODE_DIRECT_CHANGE)
305305
deserializeState(obj, CALL_MODE_NO_NOTIFY);
306306
} else {

0 commit comments

Comments
 (0)