flush serial write