mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Update Software/src/battery/BMW-I3-BATTERY.cpp
Co-authored-by: lenvm <lenvm@users.noreply.github.com>
This commit is contained in:
parent
36561b8664
commit
8ddfbd5a36
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ void receive_can_battery(CAN_frame_t rx_frame) {
|
||||||
case 0x2BD: //BMS [100ms] Status diagnosis high voltage - 1
|
case 0x2BD: //BMS [100ms] Status diagnosis high voltage - 1
|
||||||
battery_awake = true;
|
battery_awake = true;
|
||||||
if (calculateCRC(rx_frame, 3, 0x15) != 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
|
//If calculated CRC does not match transmitted CRC, increase CANerror counter
|
||||||
CANerror++;
|
CANerror++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue