From f7e1363da916df6316428608a0f7e753317f08ec Mon Sep 17 00:00:00 2001 From: samuelbles07 Date: Mon, 21 Oct 2024 00:22:50 +0700 Subject: [PATCH] Rename function --- src/AgValue.cpp | 2 +- src/AgValue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AgValue.cpp b/src/AgValue.cpp index f22c943..ef89944 100644 --- a/src/AgValue.cpp +++ b/src/AgValue.cpp @@ -4,7 +4,7 @@ #define json_prop_pmFirmware "firmware" -void Measurements::maxUpdate(MeasurementType type, int max) { +void Measurements::maxPeriod(MeasurementType type, int max) { switch (type) { case Temperature: _temperature[0].update.max = max; diff --git a/src/AgValue.h b/src/AgValue.h index adaa6db..3dd8f95 100644 --- a/src/AgValue.h +++ b/src/AgValue.h @@ -58,7 +58,7 @@ public: * @param type the target measurement type to set * @param max the maximum period length */ - void maxUpdate(MeasurementType, int max); + void maxPeriod(MeasurementType, int max); /** * @brief update target measurement type with new value.