Skip to content

Commit

Permalink
[SYS] Fix capacity to onboard ethernet board without WiFi AP
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Nov 12, 2024
1 parent bb05011 commit afe0834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit afe0834

Please sign in to comment.