Explorar o código

不充电后,充电剩余时间清零

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui %!s(int64=5) %!d(string=hai) anos
pai
achega
7b67d63be3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Application/app/sox/soc.c

+ 1 - 0
Application/app/sox/soc.c

@@ -344,6 +344,7 @@ void soc_update(void){
 		_soc.dischrger_coulomb = 0; //clear discharger
 		_soc.total_coulomb += _soc.pre_discharger_coulomb / 3600.0f;
 		chargering = 0;
+		charger_remain_time = 0;
 		if (_soc.capacity < 100) {
 			is_force_full = 0;
 		}