fix printing of all data

This commit is contained in:
Carsten Keller 2024-06-09 17:57:47 +02:00
parent 758664a3e4
commit 7bce5944d4
Signed by: carsten
GPG Key ID: DF06343A3A9B8868

View File

@ -17,10 +17,10 @@ extern "C" int _write(int file, char *ptr, int len)
for (DataIdx = 0; DataIdx < len; DataIdx++)
{
if(LL_LPUART_IsActiveFlag_TXE_TXFNF(LPUART1))
while(!LL_LPUART_IsActiveFlag_TXE_TXFNF(LPUART1))
{
LL_LPUART_TransmitData8(LPUART1, static_cast<std::uint8_t>(*ptr++));
}
LL_LPUART_TransmitData8(LPUART1, static_cast<std::uint8_t>(*ptr++));
}
return len;
}