diff --git a/Network.cpp b/Network.cpp index 38e1607..ad8f2e1 100644 --- a/Network.cpp +++ b/Network.cpp @@ -586,7 +586,10 @@ bool Network::connected() { else return this->connType != conn_types_t::unset; 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::networkEvent(WiFiEvent_t event) { switch(event) { diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 46e150e..bb87d58 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ