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