summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-30 15:51:09 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-30 15:51:09 +0000
commit7278b19ff834ce39abe61bedb6cbf6dfd4f60eb4 (patch)
tree3d20bc33562d956d092f18fb5d9a1b13bdaa8e3a /gpsd.c
parent95b42d222b594c030a0d560ff3eea1745dd41415 (diff)
downloadgpsd-7278b19ff834ce39abe61bedb6cbf6dfd4f60eb4.tar.gz
Add the ability to probe multiple DGPS servers...
...within the distance threshold and connect to the closest one that is actually up.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index c4482891..8c2a429a 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1273,7 +1273,7 @@ int main(int argc, char *argv[])
/* may be time to hunt up a DGPSIP server */
if (context.fixcnt > 0 && context.dsock == -1) {
for (channel=channels; channel < channels+MAXDEVICES; channel++) {
- if (channel->gpsdata.fix.mode < MODE_NO_FIX) {
+ if (channel->gpsdata.fix.mode > MODE_NO_FIX) {
dgpsip_autoconnect(&context,
channel->gpsdata.fix.latitude,
channel->gpsdata.fix.longitude,