health: fix soc path so enable proper throttling
Path was missing "/" thus thermal zone soc stays enabled regardless of
charging.
Bug: 188006020
Test: Local test to check soc's mode
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I62ba233ddc05f2c8c0d3bcf4f97809f9c379a757
diff --git a/health/Health.cpp b/health/Health.cpp
index f191fbf..fe8ad84 100644
--- a/health/Health.cpp
+++ b/health/Health.cpp
@@ -68,7 +68,7 @@
"/sys/devices/platform/google,charger/charge_start_level",
"/sys/devices/platform/google,charger/charge_stop_level");
static BatteryThermalControl battThermalControl(
- "dev/thermal/tz-by-name/soc/mode");
+ "/dev/thermal/tz-by-name/soc/mode");
static BatteryMetricsLogger battMetricsLogger(kBatteryResistance, kBatteryOCV);
static LowBatteryShutdownMetrics shutdownMetrics(kVoltageAvg);
static DeviceHealth deviceHealth;