Explorar o código

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

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui %!s(int64=4) %!d(string=hai) anos
pai
achega
044619e1ad
Modificáronse 1 ficheiros con 1 adicións e 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] ||