embassy icon indicating copy to clipboard operation
embassy copied to clipboard

[stm32] BufferedUart - no way to clear buffer

Open shufps opened this issue 1 year ago • 1 comments

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?

shufps avatar Jan 25 '24 08:01 shufps

have you tried using the consume() method on the buffer? That should prevent previous bytes from being returned again.

dkhayes117 avatar Mar 02 '24 13:03 dkhayes117