Question
Using a defined constant inside HAL_UART_Transmit
Hello,
I'm using STM32 with STM32CubeIDE
This is my code:
#define SOME_DATA 0x01
HAL_UART_Transmit ( & huart6 , SOME_DATA , 1 , 1000 ) ;The compiler issues the following warning :
passing argument 2 of 'HAL_UART_Transmit' makes pointer from integer without a cast [-Wint-conversion]
What should I do to fix it ?
