Update Software/src/battery/BMW-I3-BATTERY.cpp

Co-authored-by: lenvm <lenvm@users.noreply.github.com>
This commit is contained in:
Daniel Öster 2024-03-16 18:34:24 +02:00 committed by GitHub
parent 36561b8664
commit 8ddfbd5a36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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