[SOLVED]Flush serial input buffer

@Robin2
I did send 1 long string of 56 chars and nothing else so sending device stopped sending string right after i hit “send” button in seria monitor.

Then why there is 1 char left in the buffer and that char is not “z” or any other letter but “b”? Why all other chars were cleared except “b”?