From 99c0bfca4f4875e8a602c9b4ffc698d9e5cc59a0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 23 Oct 2025 11:39:17 -0400 Subject: [PATCH] stm32: Fix RTR and EFF canbus tx requests in can.c 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 --- src/stm32/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stm32/can.c b/src/stm32/can.c index 30f8fc906..223260b36 100644 --- a/src/stm32/can.c +++ b/src/stm32/can.c @@ -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); }