Fix rs232 flush on opening serial port.
This commit is contained in:
parent
2761b66d6a
commit
e71116be0a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue