mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
fix connect spelling
This commit is contained in:
@@ -595,7 +595,7 @@ bool Network::findNetworks() {
|
||||
network_ip_ = info.ip.addr;
|
||||
network_iface_ = iface_from_desc(info.desc); // "sta"/"ap"/"eth*"
|
||||
has_ipv6_ = info.has_ipv6;
|
||||
connnect_retry_ = 0;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user