1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix to sp_flush() on Unix.

This commit is contained in:
Martin Ling 2013-11-21 17:22:16 +00:00 committed by Bert Vermeulen
parent 3f099f4fe8
commit 82f424e6cd

View File

@ -525,7 +525,7 @@ enum sp_return sp_flush(struct sp_port *port, enum sp_buffer buffers)
flags = TCIOFLUSH; flags = TCIOFLUSH;
else if (buffers & SP_BUF_INPUT) else if (buffers & SP_BUF_INPUT)
flags = TCIFLUSH; flags = TCIFLUSH;
if (buffers & SP_BUF_OUTPUT) else if (buffers & SP_BUF_OUTPUT)
flags = TCOFLUSH; flags = TCOFLUSH;
/* Returns 0 upon success, -1 upon failure. */ /* Returns 0 upon success, -1 upon failure. */