flush method

void flush()

Flushes the write buffer of the serial port (i.e. force its write immediately).

Implementation

void flush() {
  _checkStatus();
  _checkError(_nativeSerialFlush(_serialHandle));
}