diff options
-rw-r--r-- | board/casta/battery.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/casta/battery.c b/board/casta/battery.c index 7cb6dff4c6..abed3481ef 100644 --- a/board/casta/battery.c +++ b/board/casta/battery.c @@ -93,6 +93,13 @@ int charger_profile_override(struct charge_state_data *curr) TEMP_OUT_OF_RANGE = TEMP_ZONE_COUNT } temp_zone; + /* + * Precharge must be executed when communication is failed on + * dead battery. + */ + if(!(curr->batt.flags & BATT_FLAG_RESPONSIVE)) + return 0; + current = curr->requested_current; voltage = curr->requested_voltage; bat_temp_c = curr->batt.temperature - 2731; |