mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Add cellvoltage amount for battery2
This commit is contained in:
parent
9afa16c7ae
commit
4bdcc232c4
1 changed files with 3 additions and 0 deletions
|
@ -1051,6 +1051,9 @@ void transmit_can_battery() {
|
|||
current_cell_polled++;
|
||||
if (current_cell_polled > 96) {
|
||||
datalayer.battery.info.number_of_cells = 97;
|
||||
#ifdef DOUBLE_BATTERY
|
||||
datalayer.battery2.info.number_of_cells = 97;
|
||||
#endif
|
||||
cmdState = CELL_VOLTAGE_CELLNO_LAST;
|
||||
} else {
|
||||
cmdState = CELL_VOLTAGE_CELLNO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue