diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-02-11 16:20:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-02-11 16:20:42 +0000 |
commit | fdd90aa3e03dc58afa937f6fb0292d94e1cc76cd (patch) | |
tree | 29d1abbe46ddab90796d3617e3355c96b903a8b5 /sirf.c | |
parent | 4ed804f8952c5ad7afe79835ae632efc50fef2ce (diff) | |
download | gpsd-fdd90aa3e03dc58afa937f6fb0292d94e1cc76cd.tar.gz |
This version of the code changes the GPS speed OK, but doesn't change
the tty speed properly.
Diffstat (limited to 'sirf.c')
-rw-r--r-- | sirf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ int sirf_mode(struct gps_session_t *session, int binary, int speed) "$PSRF100,%d,%d,8,1,0", !binary, speed); cfsetispeed(&session->ttyset, (speed_t)speed); cfsetospeed(&session->ttyset, (speed_t)speed); - tcsetattr(session->gNMEAdata.gps_fd, TCSADRAIN, &session->ttyset); + tcsetattr(session->gNMEAdata.gps_fd, TCSANOW, &session->ttyset); } int sirf_nmea_waas(int ttyfd, int enable) |