Remove the initial check for update

This commit is contained in:
Robert Strouse 2024-01-27 09:14:00 -08:00
parent 7d9d0b7fe9
commit ad5c64c4c2
4 changed files with 3 additions and 2 deletions

View file

@ -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();
}
}