Added option to disable update check. #255

This commit is contained in:
Robert Strouse 2024-01-31 10:14:33 -08:00
parent a81d1b843d
commit 8bdfd214b5
8 changed files with 23 additions and 7 deletions

View file

@ -245,7 +245,8 @@ void GitUpdater::loop() {
//this->lastCheck = millis();
//else
if(settings.checkForUpdate &&
(this->lastCheck + 14400000 < millis() || this->lastCheck == 0) && !rebootDelay.reboot) { // 4 hours
//(this->lastCheck + 14400000 < millis() || this->lastCheck == 0) && !rebootDelay.reboot) { // 4 hours
(this->lastCheck + 86400000 < millis() || this->lastCheck == 0) && !rebootDelay.reboot) { // 1 day
this->checkForUpdate();
}
}