Skip to content

Commit

Permalink
Corrected typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nmainil committed Feb 24, 2025
1 parent 84ef08b commit 85ace28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Software/src/battery/VOLVO-SPA-HYBRID-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,10 @@ void handle_incoming_can_frame_battery(CAN_frame rx_frame) {
for (cellcounter = 0; cellcounter < 102; cellcounter++) {
if (min_max_voltage[0] > cell_voltages[cellcounter])
min_max_voltage[0] = cell_voltages[cellcounter];
if (min_max_voltage[1] < cell_voltages[cellcounter])
if (min_max_voltage[1] < cell_voltages[cellcounter]) {
min_max_voltage[1] = cell_voltages[cellcounter];
CELL_ID_U_MAX = cellcounter;
CELL_ID_U_MAX = cellcounter;
}
}
CELL_U_MAX = min_max_voltage[1];
CELL_U_MIN = min_max_voltage[0];
Expand Down

0 comments on commit 85ace28

Please # to comment.