summaryrefslogtreecommitdiff
path: root/driver_nmea2000.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-24 10:17:59 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-24 10:17:59 -0400
commit0658c2fb8d15fbe78fdd4edd1be184559ab53c32 (patch)
treeb61f6cc53b9aaf5d0575f93966b18a799861460b /driver_nmea2000.c
parente18934bf45246408915652f7b6a5e5ce66cccd8a (diff)
downloadgpsd-0658c2fb8d15fbe78fdd4edd1be184559ab53c32.tar.gz
Drop the obsolete tag field from JSON output. Bump the minor protocol number.
Required a regression-test rebuild, of course. The field is still set by the TSIP and SiRF drivers; the SiRF driver actually uses it. It may be possible to eliminate the TSIP uses, but so far attempting this has produced odd regression-test failures.
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r--driver_nmea2000.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c
index 3fe2dbdb..147eba57 100644
--- a/driver_nmea2000.c
+++ b/driver_nmea2000.c
@@ -264,8 +264,6 @@ static gps_mask_t hnd_129025(unsigned char *bu, int len, PGN *pgn, struct gps_de
session->newdata.longitude = getles32(bu, 4) * 1e-7;
/*@+type@*/
- (void)strlcpy(session->gpsdata.tag, "129025", sizeof(session->gpsdata.tag));
-
return LATLON_SET | get_mode(session);
}
@@ -286,8 +284,6 @@ static gps_mask_t hnd_129026(unsigned char *bu, int len, PGN *pgn, struct gps_de
session->newdata.speed = getleu16(bu, 4) * 1e-2;
/*@+type@*/
- (void)strlcpy(session->gpsdata.tag, "129026", sizeof(session->gpsdata.tag));
-
return SPEED_SET | TRACK_SET | get_mode(session);
}
@@ -311,8 +307,6 @@ static gps_mask_t hnd_126992(unsigned char *bu, int len, PGN *pgn, struct gps_de
session->newdata.time = getleu16(bu, 2)*24*60*60 + getleu32(bu, 4)/1e4;
/*@+type@*/
- (void)strlcpy(session->gpsdata.tag, "126992", sizeof(session->gpsdata.tag));
-
return TIME_SET | get_mode(session);
}
@@ -364,8 +358,6 @@ static gps_mask_t hnd_129539(unsigned char *bu, int len, PGN *pgn, struct gps_de
session->gpsdata.dop.vdop,
session->gpsdata.dop.tdop);
- (void)strlcpy(session->gpsdata.tag, "129539", sizeof(session->gpsdata.tag));
-
return mask | get_mode(session);
}
@@ -479,8 +471,6 @@ static gps_mask_t hnd_129029(unsigned char *bu, int len, PGN *pgn, struct gps_de
/*@+type@*/
mask |= DOP_SET;
- (void)strlcpy(session->gpsdata.tag, "129029", sizeof(session->gpsdata.tag));
-
return mask | get_mode(session);
}