Explorar el Código

fix: 老化模式也需要处理powerdown

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui hace 4 años
padre
commit
044619e1ad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Application/app/sox/health.c

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

@@ -222,7 +222,7 @@ static int judge_debounce(int input, debounce_t *d){
 }
 
 static int _can_powerdown(void){
-	if (io_state()->charger_detect_irq || bms_state_get()->charging || !bms_work_is_normal()){
+	if (io_state()->charger_detect_irq || bms_state_get()->charging){
 		return 0;
 	}
 	if ((bms_state_get()->pack_voltage <= min_discharger_pdown_vol[_health.is_work_temp_normal] ||