Browse Source

检测不到hall,退出老化模式

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 4 năm trước cách đây
mục cha
commit
cf97e037d5
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Application/app/sox/state.c

+ 3 - 0
Application/app/sox/state.c

@@ -448,6 +448,9 @@ static int _can_close_mos_no_hall(void){
 static void _process_iostate_changed(s32 unhealth){
 	if (!(io_state()->hall_detect)){
 		bms_set_ps_charger_in(0, 0);
+		if (bms_work_is_aging_test()) {
+			bms_work_mode_set(WORK_MODE_AGING_TEST, 0);//close aging test mode
+		}
 		if (_can_close_mos_no_hall()) {
 			if (ml5238_is_discharging() && (!_bms_state.charging)){
 				discharger_open(0);