mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Remove the initial check for update
This commit is contained in:
parent
7d9d0b7fe9
commit
ad5c64c4c2
4 changed files with 3 additions and 2 deletions
|
|
@ -241,7 +241,8 @@ bool GitRepo::toJSON(JsonObject &obj) {
|
|||
|
||||
void GitUpdater::loop() {
|
||||
if(this->status == GIT_STATUS_READY) {
|
||||
if(this->lastCheck + 14400000 < millis() && !rebootDelay.reboot) { // 4 hours
|
||||
if(this->lastCheck == 0) this->lastCheck = millis();
|
||||
else if(this->lastCheck + 14400000 < millis() && !rebootDelay.reboot) { // 4 hours
|
||||
this->checkForUpdate();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue