Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance: Update SDK and support split summary messages #115

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

muktihari
Copy link
Member

  • Previously, we discard split summary messages since we didn't how to properly combine it since if combine it incorrectly, the resulting file will be rejected by Garmin Connect. Now we know that this message should be unique for each split_type.
  • Bump FIT SDK for Go to latest version.

@muktihari muktihari added the bug Something isn't working label Sep 23, 2024
@muktihari muktihari self-assigned this Sep 23, 2024
Comment on lines +68 to +71
mesg := a.SplitSummaries[i].ToMesg(nil)
mesg.Fields = append([]proto.Field{
factory.CreateField(mesgnum.Session, fieldnum.SessionTimestamp).WithValue(datetime.ToUint32(a.Activity.Timestamp)),
}, mesg.Fields...)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must add timestamp here, otherwise Garmin Connect rejects it as well. This is a bit weird since split_summary does not actually have defined timestamp, but FIT files produced by Garmin Device contains timestamp. But we don't have control over this, just follow their pattern.

@raditzlawliet raditzlawliet changed the title fix: support split summary messages feat: update sdk and support split summary messages Sep 23, 2024
@raditzlawliet raditzlawliet changed the title feat: update sdk and support split summary messages enhance: Update SDK and support split summary messages Sep 23, 2024
@raditzlawliet raditzlawliet added the enhancement New feature or request label Sep 23, 2024
@raditzlawliet raditzlawliet changed the title enhance: Update SDK and support split summary messages Enhance: Update SDK and support split summary messages Sep 23, 2024
@muktihari muktihari merged commit 8288b64 into dev Sep 23, 2024
1 check passed
@muktihari muktihari deleted the fix/split-summary branch September 23, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants