Skip to content

Commit

Permalink
Show space status
Browse files Browse the repository at this point in the history
  • Loading branch information
bullestock committed Oct 10, 2024
1 parent 91dbbaa commit bc87847
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/esp32/main/gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void Gateway::check_door_status()
esp_http_client_handle_t client = esp_http_client_init(&config);
if (!client)
{
ESP_LOGE(TAG, "GW: check_action: init failed");
ESP_LOGE(TAG, "GW: check_door_status: init failed");
return;
}
Http_client_wrapper w(client);
Expand Down Expand Up @@ -286,6 +286,8 @@ void Gateway::check_door_status()
if (!tmp_open_doors.empty())
tmp_open_doors += ", ";
tmp_open_doors += door;
if (strcmp(status, "open"))
tmp_open_doors += "*";
}
}
}
Expand Down

0 comments on commit bc87847

Please sign in to comment.