Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Under Windows, the Icom transceive messages do not get flushed properly. Returned data is cached in windows serial buffer and are received by hamlib as response to initial request. Lada suggested to add PURGE_RXCLEAR flag to tcflush (lib/termios.c), actually clearing and making the buffer empty. Look at http://msdn.microsoft.com/en-us/library/windows/desktop/aa363428%28v=vs.85%29.aspx PURGE_RXABORT only terminates overlapped reads but not input buffer. Nate suggested to add the PURGE_TXCLEAR flag to the output queue as well. Signed-off-by: Ladislav Vaiz <spam@nagano.cz> Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
- Loading branch information