Do not reload MQTT if the device is rebooting

This commit is contained in:
Robert Strouse 2024-01-05 19:11:55 -08:00
parent 2b30646114
commit 2bb23e6d3e
4 changed files with 4 additions and 2 deletions

View file

@ -231,7 +231,7 @@ bool GitRepo::toJSON(JsonObject &obj) {
void GitUpdater::loop() {
if(this->status == GIT_STATUS_READY) {
if(this->lastCheck + 14400000 < millis()) { // 4 hours
if(this->lastCheck + 14400000 < millis() && !rebootDelay.reboot) { // 4 hours
this->checkForUpdate();
}
}