mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 09:45:33 +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();
|
||||
buttonActive = false;
|
||||
}
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
Serial.println();
|
||||
Serial.println("Connected!");
|
||||
return (true);
|
||||
}
|
||||
digitalWrite(SONOFF_LED, HIGH);
|
||||
delay(125);
|
||||
digitalWrite(SONOFF_LED, LOW);
|
||||
delay(125);
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
Serial.println();
|
||||
Serial.println("Connected!");
|
||||
digitalWrite(SONOFF_LED, LOW);
|
||||
return (true);
|
||||
}
|
||||
Serial.print(".");
|
||||
count++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user