File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,10 @@ void ntripClientUpdate()
428
428
if (wifiIsConnected ())
429
429
ntripClientSetState (NTRIP_CLIENT_WIFI_ETHERNET_CONNECTED);
430
430
else if (wifiState == WIFI_OFF)
431
- ntripClientSetState (NTRIP_CLIENT_OFF);
431
+ {
432
+ // WiFi failed to connect. Restart Client which will restart WiFi.
433
+ ntripClientSetState (NTRIP_CLIENT_ON);
434
+ }
432
435
}
433
436
break ;
434
437
Original file line number Diff line number Diff line change @@ -424,7 +424,10 @@ void ntripServerUpdate()
424
424
if (wifiIsConnected ())
425
425
ntripServerSetState (NTRIP_SERVER_WIFI_ETHERNET_CONNECTED);
426
426
else if (wifiState == WIFI_OFF)
427
- ntripServerSetState (NTRIP_SERVER_OFF);
427
+ {
428
+ // WiFi failed to connect. Restart Client which will restart WiFi.
429
+ ntripServerSetState (NTRIP_SERVER_ON);
430
+ }
428
431
}
429
432
break ;
430
433
You can’t perform that action at this time.
0 commit comments