Fix wrong reconnect logic
[manu/arduino-maison.git] / cave / cave.ino
index 996154e..35b3f27 100644 (file)
@@ -73,7 +73,7 @@ void loop() {
       }
   }
 
-  if ( WiFi.status() != WL_CONNECTED ) {
+  if ( WiFi.status() == WL_CONNECTED ) {
       sensors_event_t event;
       
       dht.temperature().getEvent(&event);