Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/PosixSerialPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,7 @@ PosixSerialPort::put(int c)
void
PosixSerialPort::flush()
{
// There isn't a reliable way to flush on a file descriptor
// so we just wait it out. One millisecond is the USB poll
// interval so that should cover it.
usleep(1000);
tcdrain(_devfd);
}

bool
Expand Down