summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 05c7d04..7e47dcc 100644
--- a/serial.c
+++ b/serial.c
@@ -239,6 +239,7 @@ void sp_flush_incoming(void)
#ifdef _WIN32
PurgeComm(sp_fd, PURGE_RXCLEAR);
#else
+ /* FIXME: error handling */
tcflush(sp_fd, TCIFLUSH);
#endif
return;