fix connect spelling

This commit is contained in:
proddy
2026-05-02 09:49:34 +02:00
parent 132f83aa79
commit 363799c9c6
2 changed files with 9 additions and 9 deletions

View File

@@ -595,7 +595,7 @@ bool Network::findNetworks() {
network_ip_ = info.ip.addr; network_ip_ = info.ip.addr;
network_iface_ = iface_from_desc(info.desc); // "sta"/"ap"/"eth*" network_iface_ = iface_from_desc(info.desc); // "sta"/"ap"/"eth*"
has_ipv6_ = info.has_ipv6; has_ipv6_ = info.has_ipv6;
connnect_retry_ = 0; connect_retry_ = 0;
LOG_INFO("Network connected via %s (IP: " IPSTR ")", LOG_INFO("Network connected via %s (IP: " IPSTR ")",
network_iface_ == NetIface::ETHERNET ? "Ethernet" network_iface_ == NetIface::ETHERNET ? "Ethernet"
@@ -628,8 +628,8 @@ bool Network::findNetworks() {
network_ip_ = 0; network_ip_ = 0;
network_iface_ = NetIface::NONE; network_iface_ = NetIface::NONE;
has_ipv6_ = false; has_ipv6_ = false;
connnect_retry_++; connect_retry_++;
LOG_DEBUG("No active network interfaces found yet, re-connection count %d", connnect_retry_); LOG_DEBUG("No active network interfaces found yet, re-connection count %d", connect_retry_);
#endif #endif
return false; // no connection found yet return false; // no connection found yet
} }
@@ -638,7 +638,7 @@ bool Network::findNetworks() {
void Network::startAP() { void Network::startAP() {
#ifndef EMSESP_STANDALONE #ifndef EMSESP_STANDALONE
// Only start AP as a fallback if the Network has failed // 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; return;
} }

View File

@@ -176,7 +176,7 @@ class Network {
bool juststopped_ = false; bool juststopped_ = false;
bool eth_started_ = false; // true after ETH.begin() has succeeded once; prevents repeated re-init while DHCP is still running 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; 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; volatile bool wifi_connect_pending_ = false;
// Network and AP settings // Network and AP settings