mwx::flush

Flush buffered output to twe::stream.

Flush the output buffer of mwx::stream. Instance to a helper class that calls the flush() method.

for (int i = 0; i < 127; ++i) {
    Serial << "hello world! (" << i << ")" << twe::endl << twe::flush;
}
  • For serial ports, wait polling until output completes.

  • For mwx::simpbuf buffers, output 0x00 at the end (size is not changed)

最終更新