summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenny Ho <hsiufangho@google.com>2023-08-18 08:10:51 +0800
committerJenny Ho <hsiufangho@google.com>2023-08-24 02:45:56 +0000
commit66e2728440d22c5fe385068087b330772cfd5642 (patch)
treef297bd59e8b7632b8bdabf30eeff6e0f9d04269e
parent436fc806f93596bd05536d4f6468499201b66079 (diff)
downloadbms-66e2728440d22c5fe385068087b330772cfd5642.tar.gz
google_charger: vote 0 to clear thermal level
Bug: 295206104 Change-Id: If8391205ea2153ca8c247adea51fb1cc664e3933 Signed-off-by: Jenny Ho <hsiufangho@google.com>
-rw-r--r--google_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/google_charger.c b/google_charger.c
index 17bd2b5..2b78a1f 100644
--- a/google_charger.c
+++ b/google_charger.c
@@ -1553,6 +1553,7 @@ static void thermal_stats_update(struct chg_drv *chg_drv) {
/* The value from the votable may be uninitialized (negative). */
if (thermal_level <= 0) {
+ gvotable_cast_int_vote(chg_drv->thermal_level_votable, "THERMAL_UPDATE", 0, false);
/* Do not log any stats in level 0, so store updated time. */
mutex_lock(&chg_drv->stats_lock);
chg_drv->thermal_stats_last_update = get_boot_sec();