This commit is contained in:
samuelbles07
2024-11-02 14:52:58 +07:00
parent 7b0381dea3
commit 9fbbea22ff
2 changed files with 6 additions and 6 deletions

View File

@@ -773,7 +773,7 @@ bool Configuration::parse(String data, bool isLocal) {
if (curVer != newVer) { if (curVer != newVer) {
logInfo("Detected new firmware version: " + newVer); logInfo("Detected new firmware version: " + newVer);
otaNewFirmwareVersion = newVer; otaNewFirmwareVersion = newVer;
udpated = true; updated = true;
} else { } else {
otaNewFirmwareVersion = String(""); otaNewFirmwareVersion = String("");
} }
@@ -786,12 +786,12 @@ bool Configuration::parse(String data, bool isLocal) {
} }
if (changed) { if (changed) {
udpated = true; updated = true;
saveConfig(); saveConfig();
printConfig(); printConfig();
} else { } else {
if (ledBarTestRequested || co2CalibrationRequested) { if (ledBarTestRequested || co2CalibrationRequested) {
udpated = true; updated = true;
} }
} }
return true; return true;
@@ -978,8 +978,8 @@ String Configuration::getModel(void) {
} }
bool Configuration::isUpdated(void) { bool Configuration::isUpdated(void) {
bool updated = this->udpated; bool updated = this->updated;
this->udpated = false; this->updated = false;
return updated; return updated;
} }

View File

@@ -20,7 +20,7 @@ public:
private: private:
bool co2CalibrationRequested; bool co2CalibrationRequested;
bool ledBarTestRequested; bool ledBarTestRequested;
bool udpated; bool updated;
String failedMessage; String failedMessage;
bool _noxLearnOffsetChanged; bool _noxLearnOffsetChanged;
bool _tvocLearningOffsetChanged; bool _tvocLearningOffsetChanged;