diff options
Diffstat (limited to 'driver_sirf.c')
-rw-r--r-- | driver_sirf.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/driver_sirf.c b/driver_sirf.c index 1667f832..619b3284 100644 --- a/driver_sirf.c +++ b/driver_sirf.c @@ -639,23 +639,23 @@ static double sirf_time_offset(struct gps_device_t *session) } /* the PPS time message */ - else if (strcmp(session->gpsdata.tag, "MID52") == 0) { + else if (strcmp(session->tag, "MID52") == 0) { retval = 0.3; } /* u-blox EMND message */ - else if (strcmp(session->gpsdata.tag, "MID98") == 0) { + else if (strcmp(session->tag, "MID98") == 0) { retval = 0.570; } #ifdef __UNUSED__ /* geodetic-data message */ - else if (strcmp(session->gpsdata.tag, "MID41") == 0) { + else if (strcmp(session->tag, "MID41") == 0) { retval = 0.570; } #endif /* __UNUSED__ */ /* the Navigation Solution message */ - else if (strcmp(session->gpsdata.tag, "MID2") == 0) { + else if (strcmp(session->tag, "MID2") == 0) { if (session->sourcetype == source_usb) { retval = 0.640; /* USB, expect +/- 50mS jitter */ } else { @@ -792,7 +792,6 @@ static gps_mask_t sirf_msg_geodetic(struct gps_device_t *session, return 0; session->gpsdata.sentence_length = 91; - (void)strlcpy(session->gpsdata.tag, "GND", MAXTAGLEN + 1); navtype = (unsigned short)getbeu16(buf, 3); session->gpsdata.status = STATUS_NO_FIX; @@ -1172,7 +1171,7 @@ gps_mask_t sirf_parse(struct gps_device_t * session, unsigned char *buf, len -= 8; gpsd_report(session->context->debug, LOG_RAW, "SiRF: Raw packet type 0x%02x\n", buf[0]); - (void)snprintf(session->gpsdata.tag, sizeof(session->gpsdata.tag), + (void)snprintf(session->tag, sizeof(session->tag), "MID%d", (int)buf[0]); /* could change if the set of messages we enable does */ |