diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-29 16:18:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-29 16:18:42 +0000 |
commit | 1391a44aa66d71f74fa2513c16c8ae61e6a4e2ee (patch) | |
tree | af5fd7bd59e98984d0f15beba50018de4d491cf7 /serial.c | |
parent | 08a04efa887261803bc7717bd5e60882349aa131 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |