Skip to content

Commit

Permalink
[SYS] Fix capacity to onboard ethernet board without WiFi AP (#2106)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian <1technophile@users.noreply.github.com>
  • Loading branch information
1technophile and 1technophile authored Nov 12, 2024
1 parent f5fe3ed commit fdc7435
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 fdc7435

Please sign in to comment.