|
|
@@ -465,7 +465,7 @@ static void _process_iostate_changed(s32 unhealth){
|
|
|
}
|
|
|
if (io_state()->charger_detect_irq && ((unhealth & Health_charger_Fault) == 0) && (_bms_state.cell_max_vol < SIGLE_CELL_MAX_CHARGER_VOLTAGE)) {
|
|
|
if (!ml5238_is_charging() && shark_uart_timeout()){//不在车上,底座上,充电柜上,检测到充电器插入,自动打开充电,否则的话,只能通过指令来打开充电mos
|
|
|
- if (!(bms_health()->over_temp_deny_charger|| bms_health()->lower_temp_deny_charger)) {
|
|
|
+ if (!(bms_health()->over_temp_deny_charger|| bms_health()->lower_temp_deny_charger)&& (get_soc()->capacity < 100)) {
|
|
|
charger_open(1);
|
|
|
}
|
|
|
}
|