Skip to content

Commit 836eecc

Browse files
wdfk-progRbb666
authored andcommitted
fix:[STM32][drv_can] Suppress unused variable warning in send error path
1 parent 4e7a78e commit 836eecc

File tree

1 file changed

+1
-0
lines changed
  • bsp/stm32/libraries/HAL_Drivers/drivers

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ static rt_ssize_t _can_sendmsg(struct rt_can_device *can, const void *buf, rt_ui
551551

552552
if (HAL_IS_BIT_SET(hcan->Instance->TSR, tme_flag) != SET)
553553
{
554+
RT_UNUSED(mailbox_mask);
554555
return -RT_ERROR;
555556
}
556557

0 commit comments

Comments
 (0)