summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-29 16:18:42 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-29 16:18:42 +0000
commit1391a44aa66d71f74fa2513c16c8ae61e6a4e2ee (patch)
treeaf5fd7bd59e98984d0f15beba50018de4d491cf7 /serial.c
parent08a04efa887261803bc7717bd5e60882349aa131 (diff)
downloadgpsd-1391a44aa66d71f74fa2513c16c8ae61e6a4e2ee.tar.gz
Pull the DGPSIP code into its own module.
The DGPSIP socket is now part of the session context; it's guarded by the same select as all other socket reads. The latest RTCM104 report from it is relayed to each attached GPS when appropriate. (The old code only passed a correction to the first GPS to be polled after the report came in from the server.)
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 42d67a63..405f5b7f 100644
--- a/serial.c
+++ b/serial.c
@@ -128,8 +128,10 @@ int gpsd_open(struct gps_device_t *session)
* Only block until we get at least one character, whatever the
* third arg of read(2) says.
*/
+ /*@ ignore @*/
memset(session->ttyset.c_cc,0,sizeof(session->ttyset.c_cc));
session->ttyset.c_cc[VMIN] = 1;
+ /*@ end @*/
/*
* Tip from Chris Kuethe: the FIDI chip used in the Trip-Nav
* 200 (and possibly other USB GPSes) gets completely hosed