stm32/hal_uart: Fix blocking write
Function hal_uart_blocking_tx() had incorrect condition
checking if UART is open, this prevented non-blocking writes.
Condition:
if (!u || u->u_open)
was obviously wrong and is now changed to
if (!u || !u->u_open)
@@ -273,7 +273,7 @@ hal_uart_blocking_tx(int port, uint8_t data)
USART_TypeDef *regs;
u = uart_by_port(port);
- if (!u || u->u_open) {
+ if (!u || !u->u_open) {
return;
}
