summaryrefslogtreecommitdiff
path: root/xgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-11 16:06:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-11 16:06:11 +0000
commitf55757cf2dabd99e75895a2808763dc9098b963e (patch)
tree28297c24f6aacf8b4c10606e13b317fba3865120 /xgps.c
parent72f71599cb2175603f39625f09e6339362be4d4e (diff)
downloadgpsd-f55757cf2dabd99e75895a2808763dc9098b963e.tar.gz
J command and switch are gone.
Now that we have reliable end-of-cycle detection in NMEA, we can always clear the fixbuffer at start of cycle and accumulate data until we transmit at end of cycle. Accordingly, there is no longer any bneed for users to choose between jittery-but-correct and buffered-but-laggy reports. Accordingly, the daemon 'J' command is no longer necessary. All the client side options and commands connected with it can go away too.
Diffstat (limited to 'xgps.c')
-rw-r--r--xgps.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/xgps.c b/xgps.c
index d2aacf00..d9e30014 100644
--- a/xgps.c
+++ b/xgps.c
@@ -311,8 +311,6 @@ static XtInputId gps_input;
static enum deg_str_type deg_type = deg_dd;
static struct fixsource_t source;
-bool jitteropt = false;
-
bool gps_lost;
/*@ -nullassign @*/
@@ -1068,8 +1066,6 @@ handle_gps(XtPointer client_data UNUSED, XtIntervalId *ignored UNUSED)
// WATCH_NEWSTYLE forces new protocol, for test purposes
mask = WATCH_ENABLE|WATCH_RAW|WATCH_NEWSTYLE;
- if (jitteropt)
- mask |= WATCH_NOJITTER;
(void)gps_stream(gpsdata, mask);
gps_input = XtAppAddInput(app, gpsdata->gps_fd,
@@ -1221,14 +1217,11 @@ speedunits_ok:
altunits_ok:
- while ((option = getopt(argc, argv, "Vhjl:")) != -1) {
+ while ((option = getopt(argc, argv, "Vhl:")) != -1) {
switch (option) {
case 'V':
(void)fprintf(stderr, "SVN ID: $Id$ \n");
exit(0);
- case 'j':
- jitteropt = true;
- continue;
case 'l':
switch (optarg[0]) {
case 'd':