Signed-off-by: huhui <huhui@sharkgulf.com>
@@ -286,8 +286,8 @@ static void soc_update_by_current_and_time(float current_now, float delta_time,
}else {
update_capticy = 0;
}
- _soc.coulomb_now = est_coulomb;
+ _soc.coulomb_now = est_coulomb;
//通过电压校准SOC,只能在电压范围的两端校准
update_capticy |= soc_update_by_ocv();
soc_calibrate(prev_charge_status);
@@ -30,3 +30,4 @@ typedef int64_t s64;
typedef enum { shark_false, shark_true } shark_bool;
#define abs(x) (((x)>0)?(x):-(x))
+#define MAX(x, y) ((x)>(y)?(x):(y))