diff --git a/src/data/fitparser.cpp b/src/data/fitparser.cpp index 5b473aea..973070a0 100644 --- a/src/data/fitparser.cpp +++ b/src/data/fitparser.cpp @@ -145,7 +145,8 @@ bool FITParser::parseDefinitionMessage(quint8 header) return false; _len -= sizeof(def->devFields[i]); } - } + } else + def->numDevFields = 0; return true; }