Clear the connecting flag for ETH Wifi fallback #445

This commit is contained in:
Robert Strouse 2024-08-04 09:32:18 -07:00
parent e478d17c7f
commit 3d9e6c11c2
2 changed files with 4 additions and 1 deletions

View file

@ -586,7 +586,10 @@ bool Network::connected() {
else return this->connType != conn_types_t::unset; else return this->connType != conn_types_t::unset;
return false; return false;
} }
bool Network::connecting() { return this->_connecting; } bool Network::connecting() {
if(this->_connecting && millis() > this->connectStart + CONNECT_TIMEOUT) this->_connecting = false;
return this->_connecting;
}
void Network::clearConnecting() { this->_connecting = false; } void Network::clearConnecting() { this->_connecting = false; }
void Network::networkEvent(WiFiEvent_t event) { void Network::networkEvent(WiFiEvent_t event) {
switch(event) { switch(event) {

Binary file not shown.