diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-24 09:59:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-24 09:59:04 +0000 |
commit | 81bbba2e7d0a2d49ba8d503ba8b63fcf29dbab9a (patch) | |
tree | c126621b42fe631a051704f4a57365bb2cad3e90 /xgps.c | |
parent | b62cc9aef4b43253530bc0432c250c6bd50ddf8c (diff) | |
download | gpsd-81bbba2e7d0a2d49ba8d503ba8b63fcf29dbab9a.tar.gz |
xgps works with new protocol.
Diffstat (limited to 'xgps.c')
-rw-r--r-- | xgps.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -875,11 +875,9 @@ update_panel(struct gps_data_t *gpsdata, char *message, XmString string[MAXCHANNELS + 1]; char s[128], *latlon, *sp; -#ifdef GPSDNG_ENABLE /* this is where we implement source-device filtering */ - if (gpsdata->dev.path[0] && source.device[0] && strcmp(source.device, gpsdata->dev.path) != 0) + if (gpsdata->dev.path[0] && source.device!=NULL && strcmp(source.device, gpsdata->dev.path) != 0) return; -#endif /* GPSDNG_ENABLE */ /* the raw data sisplay */ if (message[0] != '\0') @@ -1082,18 +1080,10 @@ handle_gps(XtPointer client_data UNUSED, XtIntervalId *ignored UNUSED) gps_set_raw_hook(gpsdata, update_panel); -#ifdef OLDSTYLE_ENABLE - if (jitteropt) - (void)gps_query(gpsdata, "J=1"); - if (source.device != NULL) - (void)gps_query(gpsdata, "F=%s", source.device); - (void)gps_query(gpsdata, "w+x"); -#else if (jitteropt) (void)gps_query(gpsdata, "?WATCH={\"buffer_policy\":1};"); else (void)gps_query(gpsdata, "?WATCH={\"buffer_policy\":0};"); -#endif /* OLDSTYLE */ gps_input = XtAppAddInput(app, gpsdata->gps_fd, (XtPointer)XtInputReadMask, handle_input, NULL); |