embassy
embassy copied to clipboard
[stm32] BufferedUart - no way to clear buffer
Hi,
I'm trying to clear the buffer of a BufferedUart on a STM32L1 - but it seems to be not possible.
Everthing I found so far was not accessible from the application.
Is there a way to do this?
have you tried using the consume()
method on the buffer? That should prevent previous bytes from being returned again.