From db5c12aecccfc7c9cc04fc580a339f4e4bc216db Mon Sep 17 00:00:00 2001 From: Robson Sopran Date: Sun, 28 Mar 2021 16:52:56 -0300 Subject: [PATCH] Fix ID bits 18-20 of mcp2515 can driver --- drivers/can/mcp2515.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/can/mcp2515.c b/drivers/can/mcp2515.c index f530c557f9..55356b0263 100644 --- a/drivers/can/mcp2515.c +++ b/drivers/can/mcp2515.c @@ -1813,7 +1813,7 @@ static int mcp2515_send(FAR struct can_dev_s *dev, FAR struct can_msg_s *msg) /* STD2 - STD0 */ - regval |= (msg->cm_hdr.ch_id & 0x1c0000) >> 18; + regval |= (msg->cm_hdr.ch_id & 0x1c0000) >> 13; TXREGVAL(MCP2515_TXB0SIDL) = regval; /* STD10 - STD3 */