From 0658c2fb8d15fbe78fdd4edd1be184559ab53c32 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 24 Aug 2014 10:17:59 -0400 Subject: 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. --- driver_nmea2000.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'driver_nmea2000.c') 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); } -- cgit v1.2.1