diff options
author | Jack Wu <wjack@google.com> | 2022-09-16 09:14:11 +0800 |
---|---|---|
committer | AleX Pelosi <apelosi@google.com> | 2022-09-16 02:18:00 +0000 |
commit | f9de7b8a7c184baf05fac2302691be7257e6f3ea (patch) | |
tree | 60ef6cf0367685c13255fbce58fa0eaa3115a62b | |
parent | dd5d3f524baed598691e1b4edff79f64b94f8822 (diff) |
BatteryDefender: DWELL-DEFEND will trigger only when soc reaches 100%
DWELL-DEFEND will start counting time only when soc reaches 100%.
remove the condition if/when Dock-defend triggers since soc does
not over 90%
Bug: 242948736
Test: DWELL-DEFEND triggers only after soc reaches 100%
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I56103bc1547cfbea4770e095f08b5a55eee39cdf
-rw-r--r-- | health/BatteryDefender.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/health/BatteryDefender.cpp b/health/BatteryDefender.cpp index ad2dc20..66876a5 100644 --- a/health/BatteryDefender.cpp +++ b/health/BatteryDefender.cpp @@ -296,11 +296,6 @@ void BatteryDefender::stateMachine_runAction(const state_E state, const HealthIn if (health_info.batteryLevel >= triggerLevel) { mHasReachedHighCapacityLevel = true; } - - /* Do the same as above when dock-defend triggers */ - if (mIsDockDefendTrigger) { - mHasReachedHighCapacityLevel = true; - } } break; case STATE_ACTIVE: |