Explorar el Código

fix:[STM32][drv_can] Suppress unused variable warning in send error path

wdfk-prog hace 1 mes
padre
commit
836eecc2f9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      bsp/stm32/libraries/HAL_Drivers/drivers/drv_can.c

+ 1 - 0
bsp/stm32/libraries/HAL_Drivers/drivers/drv_can.c

@@ -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;
         }