Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Supersilvia authored and Supersilvia committed Mar 5, 2024
1 parent faff733 commit 622f25e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/groundlight/src/groundlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,7 @@ StaticJsonDocument<DET_DOC_SIZE> groundlight_json_doc;

detector_list get_detector_list(const char *endpoint, const char *apiToken) {
String jsonResponse = get_detectors(endpoint, apiToken);
auto error = deserializeJson(groundlight_json_doc, jsonResponse);
if (error) {
Serial.print("deserializeJson() failed: ");
Serial.println(error.c_str());
return {};
}
deserializeJson(groundlight_json_doc, jsonResponse);
JsonArray detectors = groundlight_json_doc["results"];
detector *_detector_list = new detector[detectors.size()];
for (int i = 0; i < detectors.size(); i++)
Expand Down

0 comments on commit 622f25e

Please sign in to comment.