Modified the naming to get the value of checkhysterwithsetpt
Modified the naming to get the value of checkhysterwithsetpt in dbus
configuration and json configuration.
Change-Id: Ic9cc6a6bfd0da69acc1638ca7ebd6712211e2984
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/dbus/dbusconfiguration.cpp b/dbus/dbusconfiguration.cpp
index f9c3460..2a06b30 100644
--- a/dbus/dbusconfiguration.cpp
+++ b/dbus/dbusconfiguration.cpp
@@ -390,7 +390,7 @@
double positiveHysteresis = 0;
double derivativeCoeff = 0;
- auto findCheckHysterFlag = base.find("CheckHysterWithSetpt");
+ auto findCheckHysterFlag = base.find("CheckHysteresisWithSetpoint");
auto findNeg = base.find("NegativeHysteresis");
auto findPos = base.find("PositiveHysteresis");
auto findDerivative = base.find("DCoefficient");
diff --git a/pid/buildjson.cpp b/pid/buildjson.cpp
index 57fabbf..ddfeb71 100644
--- a/pid/buildjson.cpp
+++ b/pid/buildjson.cpp
@@ -66,7 +66,7 @@
*/
auto p = j.at("pid");
- auto checkHysterWithSetpt = p.find("checkHysterWithSetpt");
+ auto checkHysterWithSetpt = p.find("checkHysteresisWithSetpoint");
auto positiveHysteresis = p.find("positiveHysteresis");
auto negativeHysteresis = p.find("negativeHysteresis");
auto derivativeCoeff = p.find("derivativeCoeff");