From: robertlipe Date: Sun, 13 Jan 2013 20:38:16 +0000 (+0000) Subject: Let V900 silently process 'G' tags as 'T' records when losing a DGPS fix. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~714 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b5c10257bb7f1610ef57d1ff1a5e2926930525cf;p=gpsbabel.git Let V900 silently process 'G' tags as 'T' records when losing a DGPS fix. --- diff --git a/gpsbabel/v900.c b/gpsbabel/v900.c index 7c894fcb7..405f084ed 100644 --- a/gpsbabel/v900.c +++ b/gpsbabel/v900.c @@ -357,7 +357,11 @@ v900_read(void) track_add_wpt(track, wpt); if (line.bas.common.tag != 'T') { waypoint *wpt2; - assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'V'); + // A 'G' tag appears to be a 'T' tag, but generated on the trailing + // edge of a DGPS fix as it decays to an SPS fix. See 1/13/13 email + // thread on gpsbabel-misc with Jamie Robertson. + assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'G' || + line.bas.common.tag == 'V'); wpt2 = waypt_dupe(wpt); if (line.bas.common.tag == 'V') { // waypoint with voice recording? char vox_file_name[sizeof(line.adv.vox)+5];