Greetings,
I finally figured out how to add missing fields to the C-SDK FIT_RECORD_MESG structure and configure the SDK so it populates the fields.
However, I discovered (it took a while for that to happen) that when adding new fields at the end or FIT_RECORD_MESG, decoding the new field values only works correctly when the new struct field's boundaries are 16bit aligned.
I found it curious that heart_rate having a very low FIT_RECORD_FIELD_NUM (3) is not declared until half of the other fields in the record struct.
I guess that's because this is an intentional limitation of the C-SDK decoder. Sure enough there are no 16 or 32 bit values declared after heart_rate FIT_RECORD_MESG.
My question: Is the assumption correct and when adding new fit fields that are missing in the C-SDK one just has to be careful to add 16bit or 32bit value BEFORE the first 8bit value heart_rate?
Thanks for any comments on that!
Best Regards
Herb