From 363799c9c61add38c6ada6a1c93989abf9c79e25 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 2 May 2026 09:49:34 +0200 Subject: [PATCH] fix connect spelling --- src/core/network.cpp | 16 ++++++++-------- src/core/network.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/network.cpp b/src/core/network.cpp index 74534642b..46045c211 100644 --- a/src/core/network.cpp +++ b/src/core/network.cpp @@ -591,11 +591,11 @@ bool Network::findNetworks() { // if we have a connection and it's a new one, set it up if (best_iface != NetIface::NONE && best_iface != previous_iface) { - previous_iface = network_iface_; // save the previous interface for comparison next time - network_ip_ = info.ip.addr; - network_iface_ = iface_from_desc(info.desc); // "sta"/"ap"/"eth*" - has_ipv6_ = info.has_ipv6; - connnect_retry_ = 0; + previous_iface = network_iface_; // save the previous interface for comparison next time + network_ip_ = info.ip.addr; + network_iface_ = iface_from_desc(info.desc); // "sta"/"ap"/"eth*" + has_ipv6_ = info.has_ipv6; + connect_retry_ = 0; LOG_INFO("Network connected via %s (IP: " IPSTR ")", network_iface_ == NetIface::ETHERNET ? "Ethernet" @@ -628,8 +628,8 @@ bool Network::findNetworks() { network_ip_ = 0; network_iface_ = NetIface::NONE; has_ipv6_ = false; - connnect_retry_++; - LOG_DEBUG("No active network interfaces found yet, re-connection count %d", connnect_retry_); + connect_retry_++; + LOG_DEBUG("No active network interfaces found yet, re-connection count %d", connect_retry_); #endif return false; // no connection found yet } @@ -638,7 +638,7 @@ bool Network::findNetworks() { void Network::startAP() { #ifndef EMSESP_STANDALONE // Only start AP as a fallback if the Network has failed - if (connnect_retry_ < MAX_NETWORK_RECONNECTION_ATTEMPTS) { + if (connect_retry_ < MAX_NETWORK_RECONNECTION_ATTEMPTS) { return; } diff --git a/src/core/network.h b/src/core/network.h index 296187298..577f3f5a4 100644 --- a/src/core/network.h +++ b/src/core/network.h @@ -176,7 +176,7 @@ class Network { bool juststopped_ = false; bool eth_started_ = false; // true after ETH.begin() has succeeded once; prevents repeated re-init while DHCP is still running volatile uint8_t last_disconnect_reason_ = 0; - uint16_t connnect_retry_ = 0; // number of network re-connection attempts + uint16_t connect_retry_ = 0; // number of network re-connection attempts volatile bool wifi_connect_pending_ = false; // Network and AP settings