Fix WiFi checking

This commit is contained in:
2023-03-31 10:45:04 -04:00
parent b3825c2a84
commit 538b58b490

View File

@@ -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: ");