|
|
@@ -290,8 +290,8 @@ static void soc_update_by_current_and_time(float current_now, float delta_time,
|
|
|
|
|
|
//如果没有校准过,充电过程中,电量100%后,设置校准标志位
|
|
|
if (chargering && (_soc.capacity == 100)){
|
|
|
+ _soc.coulomb_now = _soc.coulomb_max;//充满后,当前容量设置为最大容量
|
|
|
if ((_soc.flags & SOC_FLAG_CALIBRATED) == 0){
|
|
|
- _soc.coulomb_now = _soc.coulomb_max;
|
|
|
_soc.flags |= SOC_FLAG_CALIBRATED;
|
|
|
nv_save_soc();
|
|
|
soc_warning("calibrate OK, charging coulomb: %f\n", _soc.charger_coulomb);
|