소스 검색

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

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 4 년 전
부모
커밋
9afdda875a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
 		}
 	}