fix led
This commit is contained in:
parent
b1dd8dc297
commit
ded59cc24a
@ -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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user