summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-02-22 13:17:42 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-02-22 13:17:42 +0000
commit73155fab31241faaf30737e5c15ee79cdba9a783 (patch)
treef16701f2ae3b2345978b3900973e882de599e03e /serial.c
parente2bbf24de3283417657cf389161354e4cb78f1d0 (diff)
downloadgpsd-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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/serial.c b/serial.c
index 577829f4..3619ba18 100644
--- a/serial.c
+++ b/serial.c
@@ -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