Sfoglia il codice sorgente

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

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 4 anni fa
parent
commit
9afdda875a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
 		}
 	}