How to clean up Serial port buffer