Restore pid_index

This commit is contained in:
Daniel Öster 2024-08-04 23:35:18 +03:00
parent ccb099f2c0
commit 6c5fbd6046

View file

@ -206,7 +206,7 @@ void receive_can_battery(CAN_frame_t rx_frame) {
cell_voltages[voltage_index + 1] = voltage2;
}
if (temp1 == 0) {
if (pid_index == 0) {
cell_temperatures[temp_index] = temp2;
cell_temperatures[temp_index + 1] = temp3;
} else {