From dada82957cc2bc38eecd61181fb5c6895ebe798c Mon Sep 17 00:00:00 2001 From: George Lee Date: Fri, 28 May 2021 10:03:25 -0700 Subject: [PATCH] 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 Change-Id: I62ba233ddc05f2c8c0d3bcf4f97809f9c379a757 --- health/Health.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health/Health.cpp b/health/Health.cpp index f191fbfe..fe8ad843 100644 --- a/health/Health.cpp +++ b/health/Health.cpp @@ -68,7 +68,7 @@ static BatteryDefender battDefender(WLC_DIR "/present", "/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;