As staten in the CMSIS-RTOS V2 docs, osMessageQueuePut() takes an uint8_t for its msg_prio argument. The code supplied a NULL pointer instead of 0, which triggers the following warning when compiling with STM32CubeIDE:
warning: passing argument 3 of 'osMessageQueuePut' makes integer from pointer without a cast [-Wint-conversion]
I don't know if this change will apply automatically on the code generated by STM32CubeMX when FreeRTOS is enabled. Could you make sure it does?
Hi,
As staten in the CMSIS-RTOS V2 docs,
osMessageQueuePut()
takes anuint8_t
for itsmsg_prio
argument. The code supplied aNULL
pointer instead of0
, which triggers the following warning when compiling with STM32CubeIDE:warning: passing argument 3 of 'osMessageQueuePut' makes integer from pointer without a cast [-Wint-conversion]
I don't know if this change will apply automatically on the code generated by STM32CubeMX when FreeRTOS is enabled. Could you make sure it does?
Fixes #4