From d9bc1819731441039ca5525639e59248376dc46a Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 13 Jun 2021 14:55:43 +0200 Subject: [PATCH] Fixed a typo --- src/charge_control.c | 2 +- src/config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charge_control.c b/src/charge_control.c index 314d009..02473d8 100644 --- a/src/charge_control.c +++ b/src/charge_control.c @@ -257,7 +257,7 @@ void charge_control_init(void) u_bat_regulation_corridor = fxp_div(FXP_FROM_INT(U_BAT_REGULATION_CORRIDOR), FXP_FROM_INT(1000)); - u_bat_initial_full = fxp_div(FXP_FROM_INT(U_BAT_INITAL_FULL), FXP_FROM_INT(1000)); + u_bat_initial_full = fxp_div(FXP_FROM_INT(U_BAT_INITIAL_FULL), FXP_FROM_INT(1000)); u_bat_initial_low = fxp_sub(u_bat_initial_full, u_bat_regulation_corridor); u_bat_float_full = fxp_div(FXP_FROM_INT(U_BAT_FLOAT_FULL), FXP_FROM_INT(1000)); diff --git a/src/config.h b/src/config.h index c3e341f..3a1f477 100644 --- a/src/config.h +++ b/src/config.h @@ -7,7 +7,7 @@ #define U_BAT_REGULATION_CORRIDOR 100 /* Initial charge battery voltage threshold (in mV). */ -#define U_BAT_INITAL_FULL 28800 // stop charging if battery voltage reaches this threshold +#define U_BAT_INITIAL_FULL 28800 // stop charging if battery voltage reaches this threshold /* Transition to floating voltage levels after this time (in ms). */ #define INITIAL_CHARGE_HOLD_TIME 3600000