stepwisecontroller: add stepwise info setter
Add a setter for the stepwise info.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Idf15ed3820291d5e7b5c4caea8afaf146d4b5ce9
diff --git a/pid/stepwisecontroller.cpp b/pid/stepwisecontroller.cpp
index b6703ba..c8ec219 100644
--- a/pid/stepwisecontroller.cpp
+++ b/pid/stepwisecontroller.cpp
@@ -78,10 +78,7 @@
}
auto thermal = std::make_unique<StepwiseController>(id, inputs, owner);
-
- ec::StepwiseInfo& info = thermal->getStepwiseInfo();
-
- info = initial;
+ thermal->setStepwiseInfo(initial);
return thermal;
}