Skip to content

Commit 442afff

Browse files
Update bsp/stm32/libraries/HAL_Drivers/drivers/drv_fdcan.c
Co-authored-by: Copilot <[email protected]>
1 parent ab8fe09 commit 442afff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ static rt_err_t _inline_can_control(struct rt_can_device *can, int cmd, void *ar
382382
}
383383
break;
384384
case RT_CAN_CMD_SET_BAUD_FD: {
385+
argval = (rt_uint32_t) arg;
385386
/* 查找仲裁相位波特率是否存在 */
386387
uint32_t data_idx = _inline_get_DataBaudIndex(argval);
387388
if (data_idx == (uint32_t) -1) {

0 commit comments

Comments
 (0)