Question
HAL_UART_Transmit sends extra '00' between each byte
This is probably a simple question but I can't find a reason for it - Im using the USART on a stm32L412 and I am sending 3 bytes
uint16_t SendDataOn[3]={0x90,0x3C,0x3E}; HAL_UART_Transmit(&huart1,(uint8_t*)SendDataOn,3, 100)Except when I send this, I get an extra byte between so it means I end up getting 0x90,0x00,0x3C instead of 0x90,0x3c,0x3E. When I increase the number of bytes to send to 5, I get 0x90,0x00,0x3C 0x00,0x3C
how do i set the USART so I don't get the 00 inbetween bytes?