Fix initial value

This commit is contained in:
Daniel 2024-03-15 23:43:12 +02:00
parent 4691998404
commit 9f57c0131f

View file

@ -476,7 +476,7 @@ void receive_can_battery(CAN_frame_t rx_frame) {
break;
case 0x2BD: //BMS [100ms] Status diagnosis high voltage 1
battery_awake = true;
if (calculateCRC(rx_frame, 3, 0x3F) != rx_frame.data.u8[0]) {
if (calculateCRC(rx_frame, 3, 0x15) != rx_frame.data.u8[0]) {
//If calculated CRC does not match transmitted CRC, raise fault
CANerror++;
break;