|
|
@@ -148,6 +148,13 @@ void check_current_state(void){
|
|
|
shark_timer_post(&_charger_detect_timer._timer, _charger_detect_timer.interval);
|
|
|
}
|
|
|
}
|
|
|
+ if (!bms_state_get()->charging){
|
|
|
+ if (!_health.load_current_short && (abs(measure_value()->load_current) >= MAX_CURRENT_FOR_DISCHARGER)){
|
|
|
+ _health.load_current_short = 1;
|
|
|
+ ml5238_enable_load_detect(1); //打开负载检测
|
|
|
+ shark_timer_post(&_load_detect_timer._timer, _load_detect_timer.interval);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* 检测pack电压,cell电压,pack电压过低触发powerdown*/
|