diff --git a/Dynastream/Fit/Field.cs b/Dynastream/Fit/Field.cs index 22515f9..2fad2f3 100644 --- a/Dynastream/Fit/Field.cs +++ b/Dynastream/Fit/Field.cs @@ -145,6 +145,11 @@ namespace Dynastream.Fit this.isAccumulated = accumulated; this.profileType = profileType; } + + internal Field(byte num, byte type) + : this("unknown", num, type, 1.0d, 0.0d, "", false, Profile.Type.NumTypes) + { + } #endregion #region Methods diff --git a/Dynastream/Fit/Mesg.cs b/Dynastream/Fit/Mesg.cs index 1b32f42..0be4526 100644 --- a/Dynastream/Fit/Mesg.cs +++ b/Dynastream/Fit/Mesg.cs @@ -392,8 +392,7 @@ namespace Dynastream.Fit } else { - //Field does not exist in profile, continue to next field - continue; + field = new Field(fieldDef.Num, fieldDef.Type); } }