mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
fix led
This commit is contained in:
1 parent
b1dd8dc297
commit
ded59cc24a
1 file changed
+6
-5
@@ -185,15 +185,16 @@ bool checkConnection() {
|
|||||||
EEPROM.commit();
|
EEPROM.commit();
|
||||||
buttonActive = false;
|
buttonActive = false;
|
||||||
}
|
}
|
||||||
if (WiFi.status() == WL_CONNECTED) {
|
|
||||||
Serial.println();
|
|
||||||
Serial.println("Connected!");
|
|
||||||
return (true);
|
|
||||||
}
|
|
||||||
digitalWrite(SONOFF_LED, HIGH);
|
digitalWrite(SONOFF_LED, HIGH);
|
||||||
delay(125);
|
delay(125);
|
||||||
digitalWrite(SONOFF_LED, LOW);
|
digitalWrite(SONOFF_LED, LOW);
|
||||||
delay(125);
|
delay(125);
|
||||||
|
if (WiFi.status() == WL_CONNECTED) {
|
||||||
|
Serial.println();
|
||||||
|
Serial.println("Connected!");
|
||||||
|
digitalWrite(SONOFF_LED, LOW);
|
||||||
|
return (true);
|
||||||
|
}
|
||||||
Serial.print(".");
|
Serial.print(".");
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user