Fixing ethernet and wifi connection to be more robust
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user