格式修正

This commit is contained in:
cosmo 2021-02-02 14:28:32 +08:00
parent 9c811b19ba
commit 55ea496431
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ static rt_err_t _can_control(struct rt_can_device *can, int cmd, void *arg)
else if (filter_cfg->items[i].ide == RT_CAN_EXTID)
{
id_h = (filter_cfg->items[i].id >> 13) & 0xFFFF;
id_l = ((filter_cfg->items[i].id << 3) |
id_l = ((filter_cfg->items[i].id << 3) |
(filter_cfg->items[i].ide << 2) |
(filter_cfg->items[i].rtr << 1)) & 0xFFFF;
mask_h = ((filter_cfg->items[i].mask << 3) >> 16) & 0xFFFF;