From 622f25e1b408c9a72f9a74ae6596f75462e2ce07 Mon Sep 17 00:00:00 2001 From: Supersilvia Date: Mon, 4 Mar 2024 16:56:10 -0800 Subject: [PATCH] cleanup --- lib/groundlight/src/groundlight.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/groundlight/src/groundlight.cpp b/lib/groundlight/src/groundlight.cpp index 2786c66..d5eddb5 100644 --- a/lib/groundlight/src/groundlight.cpp +++ b/lib/groundlight/src/groundlight.cpp @@ -367,12 +367,7 @@ StaticJsonDocument 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++)