mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-24 16:48:37 -07:00
stm32: Fix RTR and EFF canbus tx requests in can.c
Some checks failed
Build test / build (push) Has been cancelled
Some checks failed
Build test / build (push) Has been cancelled
Commit 3f7d05dd attempted to add support for transmitting RTR and EFF
frames to stm32/can.c , but the change was incomplete.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6465921a5a
commit
99c0bfca4f
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ canhw_send(struct canbus_msg *msg)
|
|||
else
|
||||
tir = (msg->id & 0x7ff) << CAN_TI0R_STID_Pos;
|
||||
tir |= msg->id & CANMSG_ID_RTR ? CAN_TI0R_RTR : 0;
|
||||
mb->TIR = (msg->id << CAN_TI0R_STID_Pos) | CAN_TI0R_TXRQ;
|
||||
mb->TIR = tir | CAN_TI0R_TXRQ;
|
||||
return CANMSG_DATA_LEN(msg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue