mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Add battery text to datalayer
This commit is contained in:
parent
59a58f45c9
commit
edb6dcd39b
26 changed files with 101 additions and 155 deletions
|
@ -313,9 +313,10 @@ void send_can_battery() {
|
|||
}
|
||||
|
||||
void setup_battery(void) { // Performs one time setup at startup
|
||||
#ifdef DEBUG_VIA_USB
|
||||
Serial.println("Range Rover PHEV battery (L494 / L405) selected");
|
||||
#endif //DEBUG_VIA_USB
|
||||
strncpy(datalayer.system.info.battery_protocol, "Range Rover 13kWh PHEV battery (L494/L405)",
|
||||
sizeof(datalayer.system.info.battery_protocol) - 1);
|
||||
datalayer.system.info.battery_protocol[sizeof(datalayer.system.info.battery_protocol) - 1] =
|
||||
'\0'; // Ensure null termination
|
||||
|
||||
datalayer.battery.info.max_design_voltage_dV = MAX_PACK_VOLTAGE_DV;
|
||||
datalayer.battery.info.min_design_voltage_dV = MIN_PACK_VOLTAGE_DV;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue