mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Remove inadvertedly added BRS check from comm_can
This commit is contained in:
parent
4608d6ae13
commit
28351f8676
1 changed files with 1 additions and 4 deletions
|
@ -165,10 +165,7 @@ void transmit_can_frame(CAN_frame* tx_frame, int interface) {
|
|||
#ifdef CANFD_ADDON
|
||||
CANFDMessage MCP2518Frame;
|
||||
if (tx_frame->FD) {
|
||||
if (tx_frame->BRS)
|
||||
MCP2518Frame.type = CANFDMessage::CANFD_WITH_BIT_RATE_SWITCH;
|
||||
else
|
||||
MCP2518Frame.type = CANFDMessage::CANFD_NO_BIT_RATE_SWITCH;
|
||||
MCP2518Frame.type = CANFDMessage::CANFD_WITH_BIT_RATE_SWITCH;
|
||||
} else { //Classic CAN message
|
||||
MCP2518Frame.type = CANFDMessage::CAN_DATA;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue