Skip to content

Commit

Permalink
whitespace cleanup, and corrected .vscode/settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Supersilvia authored and Supersilvia committed Mar 14, 2024
1 parent 36a2354 commit 8541346
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"vector": "cpp",
"string_view": "cpp",
"initializer_list": "cpp",
"cmath": "cpp",
"*.tcc": "cpp"
"cmath": "cpp"
}
}
2 changes: 1 addition & 1 deletion lib/groundlight/src/groundlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ detector_list get_detector_list(const char *endpoint, const char *apiToken) {
strcpy(_detector_list[i].type, detectors[i]["type"]);
strcpy(_detector_list[i].created_at, detectors[i]["created_at"]);
strcpy(_detector_list[i].name, detectors[i]["name"]);
strcpy(_detector_list[i].query, detectors[i]["query"]);
strlcpy(_detector_list[i].query, detectors[i]["query"],sizeof(_detector_list[i].query));
strcpy(_detector_list[i].group_name, detectors[i]["group_name"]);
if (!detectors[i]["metadata"].isNull()) {
String metadataStr;
Expand Down
3 changes: 2 additions & 1 deletion src/deployable_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,6 @@ void loop () {
}
if (WiFi.isConnected()) {
debug_printf("WIFI connected to SSID %s\n", ssid);


} else {
debug_printf("unable to connect to wifi status code %d! (skipping image query and looping again)\n", WiFi.status());
Expand Down Expand Up @@ -1232,8 +1231,10 @@ bool notifyStacklight(const char * label) {
stacklightState = STACKLIGHT_ONLINE;
String SSID = ((const StringSumHelper)"GL_STACKLIGHT_" + preferences.getString("sl_uuid", ""));
WiFi.begin(SSID, (const StringSumHelper)"gl_stacklight_password_" + preferences.getString("sl_uuid", ""));
Serial.println("wifi begins");
for (int i = 0; i < 40 && WiFi.status() != WL_CONNECTED; i++) {
vTaskDelay(500 / portTICK_PERIOD_MS);
Serial.println("debug");
}
if(WiFi.isConnected()) {
String res = Stacklight::tryConnectToStacklight(ssid, password);
Expand Down

0 comments on commit 8541346

Please sign in to comment.