mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +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;
|
break;
|
||||||
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, 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
|
//If calculated CRC does not match transmitted CRC, raise fault
|
||||||
CANerror++;
|
CANerror++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue