mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 12:00:13 +02:00
Add battery closing allowed flag on startup
This commit is contained in:
parent
5e03d9c812
commit
f47ac9e411
15 changed files with 14 additions and 7 deletions
|
@ -69,6 +69,7 @@ void setup_battery(void) { // Performs one time setup at startup
|
|||
datalayer.battery.info.max_cell_voltage_mV = MAX_CELL_VOLTAGE_MV;
|
||||
datalayer.battery.info.min_cell_voltage_mV = MIN_CELL_VOLTAGE_MV;
|
||||
datalayer.battery.info.total_capacity_Wh = BATTERY_WH_MAX;
|
||||
datalayer.system.status.battery_allows_contactor_closing = true;
|
||||
}
|
||||
|
||||
uint8_t calculate_checksum(uint8_t buff[12]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue