repair serial port read