mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Fix WiFi checking
This commit is contained in:
@@ -38,7 +38,7 @@ void connectNetwork() {
|
||||
}
|
||||
|
||||
bool checkNetwork() {
|
||||
if (!WiFi.status() == WL_DISCONNECTED) {
|
||||
if (WiFi.status() != WL_CONNECTED) {
|
||||
WiFi.disconnect();
|
||||
|
||||
Serial.print("Attempting to reconnect to WPA SSID: ");
|
||||
|
||||
Reference in New Issue
Block a user