mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-04 21:11:40 +00:00
fix:[STM32][drv_can] Suppress unused variable warning in send error path
This commit is contained in:
@@ -551,6 +551,7 @@ static rt_ssize_t _can_sendmsg(struct rt_can_device *can, const void *buf, rt_ui
|
||||
|
||||
if (HAL_IS_BIT_SET(hcan->Instance->TSR, tme_flag) != SET)
|
||||
{
|
||||
RT_UNUSED(mailbox_mask);
|
||||
return -RT_ERROR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user