parent
4c206caf8b
commit
76adf376db
|
@ -357,7 +357,7 @@ static int stm32_putc(struct rt_serial_device *serial, char c)
|
||||||
#else
|
#else
|
||||||
uart->handle.Instance->DR = c;
|
uart->handle.Instance->DR = c;
|
||||||
#endif
|
#endif
|
||||||
while (__HAL_UART_GET_FLAG(&(uart->handle), UART_FLAG_TC) == RESET && block_timeout--);
|
while (__HAL_UART_GET_FLAG(&(uart->handle), UART_FLAG_TC) == RESET && --block_timeout);
|
||||||
return (block_timeout != 0) ? 1 : -1;
|
return (block_timeout != 0) ? 1 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue