Skip to content

upgrade garmin fit sdk profile version 21.205.0#32

Merged
shaonianche merged 1 commit into
mainfrom
profile-21.205.0
Jul 23, 2026
Merged

upgrade garmin fit sdk profile version 21.205.0#32
shaonianche merged 1 commit into
mainfrom
profile-21.205.0

Conversation

@shaonianche

@shaonianche shaonianche commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Refs #31

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a51102c4e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

field_id=self.ID,
base_type=BaseType.UINT32,
offset = 0,
scale = 1,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use the SDK's 1000 scale for active_time

When reading or writing 21.205 files that include the newly added session active_time field, this generated scale makes the public value and serialized bytes 1000x off: the added Profile_21.205.0.xlsx rows for session/lap/split/split_summary active_time specify scale 1000 with units s, while Field.decode_value divides by scale and encode_value multiplies by it. Please regenerate/fix these new active_time fields with the SDK scale so seconds round-trip correctly.

AGENTS.md reference: AGENTS.md:L64-L65

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@codex address that feedback

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Summary

Testing

  • git diff --check
  • uv run pytest fit_tool/tests/test_profile.py
  • uv run pytest

Committed changes on the current branch with commit ed7e01f and created PR metadata via make_pr titled “Fix generated profile numeric scales for SDK 21.205”.

View task →

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.10%. Comparing base (d95f5af) to head (a51102c).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #32   +/-   ##
=======================================
  Coverage   89.10%   89.10%           
=======================================
  Files          21       21           
  Lines        1404     1404           
  Branches      300      300           
=======================================
  Hits         1251     1251           
  Misses        109      109           
  Partials       44       44           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Repository owner deleted a comment from chatgpt-codex-connector Bot Jul 23, 2026
@shaonianche
shaonianche merged commit 6383cb4 into main Jul 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant