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:
@@ -591,11 +591,11 @@ bool Network::findNetworks() {
|
|||||||
|
|
||||||
// if we have a connection and it's a new one, set it up
|
// if we have a connection and it's a new one, set it up
|
||||||
if (best_iface != NetIface::NONE && best_iface != previous_iface) {
|
if (best_iface != NetIface::NONE && best_iface != previous_iface) {
|
||||||
previous_iface = network_iface_; // save the previous interface for comparison next time
|
previous_iface = network_iface_; // save the previous interface for comparison next time
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user