summaryrefslogtreecommitdiff
path: root/sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-02-11 16:20:42 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-02-11 16:20:42 +0000
commitfdd90aa3e03dc58afa937f6fb0292d94e1cc76cd (patch)
tree29d1abbe46ddab90796d3617e3355c96b903a8b5 /sirf.c
parent4ed804f8952c5ad7afe79835ae632efc50fef2ce (diff)
downloadgpsd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sirf.c b/sirf.c
index e73ce347..c658c59b 100644
--- a/sirf.c
+++ b/sirf.c
@@ -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)