refactor: define OTA upgrade flag and MQTT mutex inline

This commit is contained in:
Yurii committed 2026-11-28 00:19:16 +03:00
1 parent aa7385c70f
commit cc6131eac9
7 files changed
+22 -27

No files matched your search

+1 -1
View File
@@ -770,7 +770,7 @@ static void updateConnectionStatus() {
}
static bool canRunSensors() {
return !vars.states.upgrading && !restartTask.scheduled() && !restartTask.active();
return !upgrading && !restartTask.scheduled() && !restartTask.active();
}
static Task readDallasSensorsTask("Read Dallas sensors", [](void*) {