Fixed a typo

This commit is contained in:
Thomas Kolb 2021-06-13 14:55:43 +02:00
parent d94b376f00
commit d9bc181973
2 changed files with 2 additions and 2 deletions

View file

@ -257,7 +257,7 @@ void charge_control_init(void)
u_bat_regulation_corridor = fxp_div(FXP_FROM_INT(U_BAT_REGULATION_CORRIDOR), u_bat_regulation_corridor = fxp_div(FXP_FROM_INT(U_BAT_REGULATION_CORRIDOR),
FXP_FROM_INT(1000)); 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_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)); u_bat_float_full = fxp_div(FXP_FROM_INT(U_BAT_FLOAT_FULL), FXP_FROM_INT(1000));

View file

@ -7,7 +7,7 @@
#define U_BAT_REGULATION_CORRIDOR 100 #define U_BAT_REGULATION_CORRIDOR 100
/* Initial charge battery voltage threshold (in mV). */ /* 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). */ /* Transition to floating voltage levels after this time (in ms). */
#define INITIAL_CHARGE_HOLD_TIME 3600000 #define INITIAL_CHARGE_HOLD_TIME 3600000