mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Remove comment
This commit is contained in:
parent
edb6dcd39b
commit
950b0bbb26
24 changed files with 25 additions and 50 deletions
|
@ -1254,8 +1254,7 @@ void setup_battery(void) { // Performs one time setup at startup
|
|||
#ifdef TESLA_MODEL_SX_BATTERY // Always use NCM/A mode on S/X packs
|
||||
strncpy(datalayer.system.info.battery_protocol, "Tesla Model S/X",
|
||||
sizeof(datalayer.system.info.battery_protocol) - 1);
|
||||
datalayer.system.info.battery_protocol[sizeof(datalayer.system.info.battery_protocol) - 1] =
|
||||
'\0'; // Ensure null termination
|
||||
datalayer.system.info.battery_protocol[sizeof(datalayer.system.info.battery_protocol) - 1] = '\0';
|
||||
datalayer.battery.info.max_design_voltage_dV = MAX_PACK_VOLTAGE_SX_NCMA;
|
||||
datalayer.battery.info.min_design_voltage_dV = MIN_PACK_VOLTAGE_SX_NCMA;
|
||||
datalayer.battery.info.max_cell_voltage_mV = MAX_CELL_VOLTAGE_NCA_NCM;
|
||||
|
@ -1273,8 +1272,7 @@ void setup_battery(void) { // Performs one time setup at startup
|
|||
#ifdef TESLA_MODEL_3Y_BATTERY // Model 3/Y can be either LFP or NCM/A
|
||||
strncpy(datalayer.system.info.battery_protocol, "Tesla Model 3/Y",
|
||||
sizeof(datalayer.system.info.battery_protocol) - 1);
|
||||
datalayer.system.info.battery_protocol[sizeof(datalayer.system.info.battery_protocol) - 1] =
|
||||
'\0'; // Ensure null termination
|
||||
datalayer.system.info.battery_protocol[sizeof(datalayer.system.info.battery_protocol) - 1] = '\0';
|
||||
#ifdef LFP_CHEMISTRY
|
||||
datalayer.battery.info.chemistry = battery_chemistry_enum::LFP;
|
||||
datalayer.battery.info.max_design_voltage_dV = MAX_PACK_VOLTAGE_3Y_LFP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue