mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Fix initial value
This commit is contained in:
parent
4691998404
commit
9f57c0131f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue