forked from nuttx/nuttx-update
Fix ID bits 18-20 of mcp2515 can driver
This commit is contained in:
parent
4851d232c0
commit
db5c12aecc
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue