mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 01:53:48 +00:00
Fix rs232 flush on opening serial port.
This commit is contained in:
@@ -89,7 +89,7 @@ serial_port rs232_open(const char* pcPortName)
|
|||||||
return INVALID_SERIAL_PORT;
|
return INVALID_SERIAL_PORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
tcflush(sp, TCIFLUSH);
|
tcflush(sp->fd, TCIFLUSH);
|
||||||
return sp;
|
return sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user