diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-30 15:51:09 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-30 15:51:09 +0000 |
commit | 7278b19ff834ce39abe61bedb6cbf6dfd4f60eb4 (patch) | |
tree | 3d20bc33562d956d092f18fb5d9a1b13bdaa8e3a /gpsd.c | |
parent | 95b42d222b594c030a0d560ff3eea1745dd41415 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |