updated to prevent warning on WiFI mode (shown in debug mode)

This commit is contained in:
proddy
2026-03-29 15:41:23 +02:00
parent 1616b0da0a
commit dc9b95f3e7

View File

@@ -34,8 +34,8 @@ void NetworkSettingsService::begin() {
WiFi.persistent(false); WiFi.persistent(false);
WiFi.setAutoReconnect(false); WiFi.setAutoReconnect(false);
WiFi.mode(WIFI_MODE_MAX); WiFi.mode(WIFI_STA);
WiFi.mode(WIFI_MODE_NULL); WiFi.mode(WIFI_OFF);
// scan settings give connect issues since arduino 2.0.14 and arduino 3.x.x with some wifi systems // scan settings give connect issues since arduino 2.0.14 and arduino 3.x.x with some wifi systems
// WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // default is FAST_SCAN // WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // default is FAST_SCAN
@@ -108,7 +108,7 @@ void NetworkSettingsService::loop() {
break; break;
case CONNECT_WAIT_ETH_IP4: case CONNECT_WAIT_ETH_IP4:
if (ETH.hasIP()) { if (ETH.hasIP()) {
emsesp::EMSESP::logger().info("Eth IPv4: %s", ETH.localIP().toString().c_str()); emsesp::EMSESP::logger().info("ETH IPv4: %s", ETH.localIP().toString().c_str());
connect = CONNECT_WAIT_ETH_IP6; connect = CONNECT_WAIT_ETH_IP6;
} }
if (!ETH.connected()) { if (!ETH.connected()) {