File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ void WiFiConnectionHandler::update() {
104104 int networkStatus = 0 ;
105105 if (now - lastConnectionTickTime > connectionTickTimeInterval) { /* time bracket */
106106
107+ lastConnectionTickTime = now;
108+
107109 switch (netConnectionState) {
108110 case NetworkConnectionState::INIT: {
109111 Debug.print (DBG_VERBOSE, " ::INIT" );
@@ -114,7 +116,6 @@ void WiFiConnectionHandler::update() {
114116 if (networkStatus == NETWORK_HARDWARE_ERROR) {
115117 // NO FURTHER ACTION WILL FOLLOW THIS
116118 changeConnectionState (NetworkConnectionState::ERROR);
117- lastConnectionTickTime = now;
118119 return ;
119120 }
120121 Debug.print (DBG_ERROR, " Current WiFi Firmware: %s" , WiFi.firmwareVersion ());
@@ -209,8 +210,6 @@ void WiFiConnectionHandler::update() {
209210 }
210211 break ;
211212 }
212- lastConnectionTickTime = now;
213-
214213 } /* time bracket */
215214}
216215
You can’t perform that action at this time.
0 commit comments