From: robertlipe Date: Tue, 30 Jul 2013 16:58:13 +0000 (+0000) Subject: Ignore unknown field in Garmin fit from ForeRunner 110; don't dcheck that it's zero. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~469 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=80eb24317051e5f68508c10e663006cb3c7f633e;p=gpsbabel.git Ignore unknown field in Garmin fit from ForeRunner 110; don't dcheck that it's zero. --- diff --git a/gpsbabel/garmin_fit.cc b/gpsbabel/garmin_fit.cc index 483c8a095..eeb040eee 100644 --- a/gpsbabel/garmin_fit.cc +++ b/gpsbabel/garmin_fit.cc @@ -192,9 +192,9 @@ fit_parse_definition_message(uint8_t header) free(def->fields); } - // first byte is reserved - is_fatal(fit_getuint8() != 0, - MYNAME ": Definition message reserved bits not zero\n"); + // first byte is reserved. It's usually 0 and we don't know what it is, + // but we've seen some files that are 0x40. So we just read it and toss it. + i = fit_getuint8(); // second byte is endianness def->endian = fit_getuint8();