diff --git a/GitOTA.cpp b/GitOTA.cpp index 4e164ce..6b3ef70 100644 --- a/GitOTA.cpp +++ b/GitOTA.cpp @@ -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(); } } diff --git a/SomfyController.ino b/SomfyController.ino index 4fe64b8..4ec293b 100644 --- a/SomfyController.ino +++ b/SomfyController.ino @@ -34,7 +34,7 @@ void setup() { delay(1000); net.setup(); somfy.begin(); - git.checkForUpdate(); + //git.checkForUpdate(); } void loop() { diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 9615487..91eb7ed 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ diff --git a/SomfyController.ino.esp32s3.bin b/SomfyController.ino.esp32s3.bin index aeabe55..60b45ae 100644 Binary files a/SomfyController.ino.esp32s3.bin and b/SomfyController.ino.esp32s3.bin differ