[SYS] Fix capacity to onboard ethernet board without WiFi AP (#2106)

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
Florian
2024-11-12 08:26:55 -06:00
committed by GitHub
parent f5fe3ed223
commit fdc7435079

View File

@@ -2307,7 +2307,7 @@ void setupWiFiManager() {
esp_wifi_set_config(WIFI_IF_AP, &conf);
# endif
bool shouldRestart = (gatewayState != GatewayState::BROKER_CONNECTED && gatewayState != GatewayState::NTWK_CONNECTED);
bool shouldRestart = (gatewayState != GatewayState::BROKER_CONNECTED && !ethConnected && gatewayState != GatewayState::NTWK_CONNECTED);
# ifdef USE_BLUFI
shouldRestart = shouldRestart && !isStaConnecting();