[SOLVED]Flush serial input buffer

surepic:
By reading buffer after flush.

Let's see the code that you used