Skip to content

Commit 006f112

Browse files
Fix duplicate assignment of pmsg->brs
1 parent 1e715e2 commit 006f112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsp/stm32/libraries/HAL_Drivers/drivers/drv_fdcan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ static int _inline_can_recvmsg(struct rt_can_device *can, void *buf, rt_uint32_t
501501

502502
#ifdef RT_CAN_USING_CANFD
503503
pmsg->fd_frame = (pdrv_can->RxHeader.FDFormat >> 16) && 0x20;
504-
pmsg->brs = (pdrv_can->RxHeader.BitRateSwitch >> 16) && 0x10;;
504+
pmsg->brs = (pdrv_can->RxHeader.BitRateSwitch >> 16) && 0x10;
505505
#endif
506506

507507
return sizeof(struct rt_can_msg);
@@ -713,4 +713,4 @@ static int rt_hw_can_init(void)
713713
INIT_BOARD_EXPORT(rt_hw_can_init);
714714

715715
#endif /* BSP_USING_FDCAN1 || BSP_USING_FDCAN2 */
716-
#endif /* RT_USING_CAN */
716+
#endif /* RT_USING_CAN */

0 commit comments

Comments
 (0)