From 9fbbea22ffa5ff34497a8ae287aa0ca7d0194701 Mon Sep 17 00:00:00 2001 From: samuelbles07 Date: Sat, 2 Nov 2024 14:52:58 +0700 Subject: [PATCH] Fix typo --- src/AgConfigure.cpp | 10 +++++----- src/AgConfigure.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AgConfigure.cpp b/src/AgConfigure.cpp index 68f62ea..43c97a4 100644 --- a/src/AgConfigure.cpp +++ b/src/AgConfigure.cpp @@ -773,7 +773,7 @@ bool Configuration::parse(String data, bool isLocal) { if (curVer != newVer) { logInfo("Detected new firmware version: " + newVer); otaNewFirmwareVersion = newVer; - udpated = true; + updated = true; } else { otaNewFirmwareVersion = String(""); } @@ -786,12 +786,12 @@ bool Configuration::parse(String data, bool isLocal) { } if (changed) { - udpated = true; + updated = true; saveConfig(); printConfig(); } else { if (ledBarTestRequested || co2CalibrationRequested) { - udpated = true; + updated = true; } } return true; @@ -978,8 +978,8 @@ String Configuration::getModel(void) { } bool Configuration::isUpdated(void) { - bool updated = this->udpated; - this->udpated = false; + bool updated = this->updated; + this->updated = false; return updated; } diff --git a/src/AgConfigure.h b/src/AgConfigure.h index f351fab..1cca028 100644 --- a/src/AgConfigure.h +++ b/src/AgConfigure.h @@ -20,7 +20,7 @@ public: private: bool co2CalibrationRequested; bool ledBarTestRequested; - bool udpated; + bool updated; String failedMessage; bool _noxLearnOffsetChanged; bool _tvocLearningOffsetChanged;