mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-15 11:52:12 +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() {
|
void GitUpdater::loop() {
|
||||||
if(this->status == GIT_STATUS_READY) {
|
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();
|
this->checkForUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ void setup() {
|
||||||
delay(1000);
|
delay(1000);
|
||||||
net.setup();
|
net.setup();
|
||||||
somfy.begin();
|
somfy.begin();
|
||||||
git.checkForUpdate();
|
//git.checkForUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue