FastLED 3.10.8
Loading...
Searching...
No Matches

◆ flush()

bool fl::SerialPort::flush ( u32 timeoutMs = 1000)

Wait for serial output to complete.

Parameters
timeoutMsMaximum time to wait in milliseconds (default: 1000ms)
Returns
true if flush completed, false if timeout

Blocks until all buffered data is transmitted. Note: On platforms without buffering, this returns immediately.

Definition at line 126 of file serial.cpp.hpp.

126 {
127 return fl::flush(timeoutMs);
128}
bool flush(u32 timeoutMs) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, and fl::flush().

+ Here is the call graph for this function: