Fix rs232 flush on opening serial port.

This commit is contained in:
Romuald Conty 2009-09-17 14:41:37 +00:00
parent 2761b66d6a
commit e71116be0a

View file

@ -89,7 +89,7 @@ serial_port rs232_open(const char* pcPortName)
return INVALID_SERIAL_PORT;
}
tcflush(sp, TCIFLUSH);
tcflush(sp->fd, TCIFLUSH);
return sp;
}