Skip to content

fix(battery): correct GATT status decoding - #151

Merged
TobiasRoeddiger merged 4 commits into
2.5.0from
codex/battery-status-decoding
Oct 4, 2026
Merged

TobiasRoeddiger merged 4 commits into
2.5.0from
codex/battery-status-decoding

Conversation

@TobiasRoeddiger

Copy link
Copy Markdown
Member

Battery status reads could throw RangeError, and cycle count 1 appeared as 256. Decode the little-endian fields at their correct bit positions, preserve all fault bits, and map reserved enum values to unknown.

Validated: all 21 library tests and analysis pass. Captured device payloads cover the original errors; the patched OpenWearables app returned 12 correct power and health readings from each connected ear.

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit a9f6b04):

https://open-earable-lib-web-example--pr151-codex-battery-stat-nhclnd78.web.app

(expires Sun, 01 Nov 2026 20:51:39 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7f6db4d9d00b851ad49af109fa949061904b3151

@TobiasRoeddiger
TobiasRoeddiger changed the base branch from main to 2.5.0 October 4, 2026 20:48
@TobiasRoeddiger
TobiasRoeddiger merged commit 6b32863 into 2.5.0 Oct 4, 2026
4 checks passed
@TobiasRoeddiger TobiasRoeddiger mentioned this pull request Oct 4, 2026
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