Skip to content

fix: improve battery health accuracy (use FccComp1 over raw capacity) - #8

Merged
k06a merged 1 commit into
k06a:mainfrom
wChenonly:main
Apr 7, 2026
Merged

fix: improve battery health accuracy (use FccComp1 over raw capacity)#8
k06a merged 1 commit into
k06a:mainfrom
wChenonly:main

Conversation

@wChenonly

Copy link
Copy Markdown
Contributor

Previously battery health was calculated using AppleRawMaxCapacity / DesignCapacity,
which reflects raw hardware capacity and results in a lower value (~79%).

However, macOS reports battery health based on a calibrated capacity value.
The correct field is BatteryData.FccComp1, which represents the compensated
full charge capacity and aligns with system-reported health (~83%).

This change updates the calculation to prefer FccComp1 when available,
with a fallback to AppleRawMaxCapacity for compatibility.

@k06a

k06a commented Apr 7, 2026

Copy link
Copy Markdown
Owner

@wChenonly appreciate your contribution!

@k06a
k06a merged commit 459eefb into k06a:main Apr 7, 2026
6 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.

2 participants