split parameters for logging and tuning
add a flag to enable/disable tuning: default off
add an option for specifying a folder for outputting logs.
Closes: #10
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I43864768f1dee8672f13288d3cf5a0c87c373aed
diff --git a/pid/zone.hpp b/pid/zone.hpp
index 78ebf0f..fcadac0 100644
--- a/pid/zone.hpp
+++ b/pid/zone.hpp
@@ -52,9 +52,9 @@
_minThermalOutputSetPt(minThermalOutput),
_failSafePercent(failSafePercent), _mgr(mgr)
{
- if (tuningLoggingEnabled && !tuningLoggingPath.empty())
+ if (loggingEnabled)
{
- _log.open(tuningLoggingPath + std::to_string(zone));
+ _log.open(loggingPath + std::to_string(zone));
}
}