|
|
@@ -334,7 +334,7 @@ static int _can_close_mos_no_hall(void){
|
|
|
|
|
|
static void _process_iostate_changed(s32 unhealth){
|
|
|
if (!(io_state()->hall_detect)&& _can_close_mos_no_hall()){
|
|
|
- if (ml5238_is_discharging()){
|
|
|
+ if (ml5238_is_discharging() && (!_bms_state.charging)){
|
|
|
discharger_open(0);
|
|
|
close_dfet_time = shark_get_seconds();
|
|
|
}
|