Make default battery type configurable via Kconfig
This commit is contained in:
+2
-4
@@ -35,10 +35,8 @@ void main(void)
|
||||
|
||||
setup();
|
||||
|
||||
battery_conf_init(&bat_conf,
|
||||
BAT_TYPE_GEL, // temporary!!
|
||||
CONFIG_BAT_DEFAULT_NUM_CELLS,
|
||||
CONFIG_BAT_DEFAULT_CAPACITY_AH);
|
||||
battery_conf_init(&bat_conf, CONFIG_BAT_DEFAULT_TYPE,
|
||||
CONFIG_BAT_DEFAULT_NUM_CELLS, CONFIG_BAT_DEFAULT_CAPACITY_AH);
|
||||
battery_conf_overwrite(&bat_conf, &bat_conf_user); // initialize conf_user with same values
|
||||
|
||||
// read custom configuration from EEPROM
|
||||
|
||||
Reference in New Issue
Block a user