mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Added option to disable update check. #255
This commit is contained in:
parent
a81d1b843d
commit
8bdfd214b5
8 changed files with 23 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue