Hi,
I'm trying to convert a multi-session FIT file into multiple single session FIT files.
I'm basing my code on the decode example from the ANT SDK.
I read in an existing FIT file, writing out all messages received by the fit::MesgListener listener via the encode class write function. I also write out all message received via the fit::MesgDefinitionListener listener.
My problem is that when I try and read the file created, decode.CheckIntegrity fails with the error "FIT decode error: Missing FIT message definition for local message number 4".
This relates to the message definition number 22 which isn't defined in fit_profile.hpp (there should be a FIT_MESG_NUM_xxx entry) and more importantly, isn't defined as a message in Profile::mesgs.
I really don't need to know what message 22 contains but need a way of writing it out to a FIT file without the encoder generating a default message definition.
Has anyone seen this problem and/or know of a solution?
Thanks