diff options
Diffstat (limited to 'board/pit/board.c')
-rw-r--r-- | board/pit/board.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/pit/board.c b/board/pit/board.c index c548ee4040..de0730967f 100644 --- a/board/pit/board.c +++ b/board/pit/board.c @@ -96,7 +96,7 @@ const struct gpio_alt_func gpio_alt_funcs[] = { const int gpio_alt_funcs_count = ARRAY_SIZE(gpio_alt_funcs); /* Battery temperature ranges in degrees C */ -const struct battery_temperature_ranges bat_temp_ranges = { +static const struct battery_info info = { .start_charging_min_c = 0, .start_charging_max_c = 45, .charging_min_c = 0, @@ -105,6 +105,11 @@ const struct battery_temperature_ranges bat_temp_ranges = { .discharging_max_c = 100, }; +const struct battery_info *battery_get_info(void) +{ + return &info; +} + /* I2C ports */ const struct i2c_port_t i2c_ports[] = { {"master", I2C_PORT_MASTER, 100}, |