def flush(self):
        if not self.is_open:
            raise portNotOpenError
        termios.tcdrain(self.fd)
Flush of file like objects. In this case, wait until all data
dataset/ETHPy150Open pyserial/pyserial/serial/serialposix.py/Serial.flush