From 4bdcc232c40a91a91bb5c0bc993ed05a12473773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96ster?= Date: Sun, 12 Jan 2025 12:18:55 +0200 Subject: [PATCH] Add cellvoltage amount for battery2 --- Software/src/battery/BMW-I3-BATTERY.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Software/src/battery/BMW-I3-BATTERY.cpp b/Software/src/battery/BMW-I3-BATTERY.cpp index 55bc2b97..f5c73e0d 100644 --- a/Software/src/battery/BMW-I3-BATTERY.cpp +++ b/Software/src/battery/BMW-I3-BATTERY.cpp @@ -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;