File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
usermods/usermod_v2_HttpPullLightControl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments