فهرست منبع

无霍尔/485,没有任何短路,才能打开小电

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 5 سال پیش
والد
کامیت
5ca0a39752
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Application/app/sox/iostate.c
  2. 1 1
      Application/app/sox/state.c

+ 1 - 1
Application/app/sox/iostate.c

@@ -156,7 +156,7 @@ static shark_timer_t _charger_detect_irq_timer = {.handler = charger_detect_irq_
 
 void small_current_short_irq_handler(void){
 	if (!AUX_VOL_IS_OPEN()){
-		io_debug("close aux power,cause the short irq\n");
+		//io_debug("close aux power,cause the short irq\n");
 		return;
 	}
 	mcu_sleep_set_wakeup_source(WAKEUP_SOURCE_SMALL_POWER_SHORT);

+ 1 - 1
Application/app/sox/state.c

@@ -396,7 +396,7 @@ static void _process_iostate_changed(s32 unhealth){
 			close_dfet_no_hall ++;
 			open_dfet = open_dfet_failt = 0; //clear open dfet count
 		}
-		if (!AUX_VOL_IS_OPEN()){
+		if (!AUX_VOL_IS_OPEN() && !bms_health()->load_current_short && !io_state()->aux_lock_detect && !bms_health()->small_current_short){
 			start_aux_power(1);
 		}
 		if (!io_state()->charger_detect_irq && ml5238_is_charging() && (!_bms_state.charging)){