diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-02-22 13:17:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-02-22 13:17:42 +0000 |
commit | 73155fab31241faaf30737e5c15ee79cdba9a783 (patch) | |
tree | f16701f2ae3b2345978b3900973e882de599e03e /serial.c | |
parent | e2bbf24de3283417657cf389161354e4cb78f1d0 (diff) | |
download | gpsd-73155fab31241faaf30737e5c15ee79cdba9a783.tar.gz |
Aha -- long timeout after baud change isn't needed any more with the
right tcdrain() call in place!
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -63,12 +63,6 @@ int gpsd_set_speed(struct gps_session_t *session, int speed) if (tcsetattr(session->gNMEAdata.gps_fd, TCSANOW, &session->ttyset) != 0) return 0; tcflush(session->gNMEAdata.gps_fd, TCIOFLUSH); - /* - * Give the GPS and UART this much time to settle and ship some data - * before trying to read after open or baud rate change. Less than - * 1.25 seconds doesn't work om most UARTs. - */ - usleep(1250000); /* * Magic -- relies on the fact that the UARTS on GPSes never seem to take |