Explorar o código

充满校准最小容量后,记录最小容量

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

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

@@ -323,7 +323,7 @@ static void _force_capacity_full(void){
 		//don't trust if curr_min_cap big than before
 		if (curr_min_cap < _soc.coulomb_min) {
 			_soc.coulomb_min = _soc.coulomb_min * (1.0f - min_cap_lfp) + curr_min_cap * min_cap_lfp; //lowpass filter
-			soc_warning("current real cap %f\n", curr_real_cap);
+			soc_warning("current real cap %f\n", _soc.coulomb_min);
 			push_event(Min_Cap_For_Full, (u32)curr_real_cap);
 		}
 	}