Fix ID bits 18-20 of mcp2515 can driver

This commit is contained in:
Robson Sopran 2021-03-28 16:52:56 -03:00 committed by Xiang Xiao
parent 4851d232c0
commit db5c12aecc

View File

@ -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 */