mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-26 19:56:39 +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;
|
||||
}
|
||||
|
||||
tcflush(sp, TCIFLUSH);
|
||||
tcflush(sp->fd, TCIFLUSH);
|
||||
return sp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user