You are here: Forum Home → ANT Developers Forums → ANT+ FIT Forum Has Moved → Thread
15 March 2017 03:30 PM
28 March 2017 04:35 AM #1
03 April 2017 04:10 AM #2
03 April 2017 04:48 PM #3
04 April 2017 01:39 AM #4
04 April 2017 10:57 AM #5
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);
}
}
1 of 1 Pages