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:
parent
3f099f4fe8
commit
82f424e6cd
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user