Fixing ethernet and wifi connection to be more robust

This commit is contained in:
2026-03-03 13:01:56 -05:00
parent bdf4a73cf2
commit 8b24d9ed83
4 changed files with 100 additions and 29 deletions

View File

@@ -48,6 +48,11 @@ extern "C" void app_main() {
set_led_status(led_status::ConnectingEthernet);
result = check_ethernet_connection(retries);
if (result == ESP_ERR_INVALID_STATE) {
printf("Ethernet cable not plugged in, skipping retries.\n");
break;
}
if (result != ESP_OK) {
set_led_status(led_status::Failed);
vTaskDelay(pdMS_TO_TICKS(1000));