You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/03/29 04:40:15 UTC
[incubator-nuttx] branch master updated: Fix ID bits 18-20 of
mcp2515 can driver
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new db5c12a Fix ID bits 18-20 of mcp2515 can driver
db5c12a is described below
commit db5c12aecccfc7c9cc04fc580a339f4e4bc216db
Author: Robson Sopran <rb...@certi.org.br>
AuthorDate: Sun Mar 28 16:52:56 2021 -0300
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 f530c55..55356b0 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 */