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

Battery (Haiku): handle empty slots #1575

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

mmuman
Copy link
Contributor

@mmuman mmuman commented Feb 19, 2025

My ThinkPad has a second slot for external batteries.

@CarterLi
Copy link
Member

You should check extended.last_full_charge == 0. If true, just skip this battery.

@mmuman
Copy link
Contributor Author

mmuman commented Feb 19, 2025

I just copied what PowerStatus did but let's try that.

@mmuman
Copy link
Contributor Author

mmuman commented Feb 19, 2025

Actually (uint32)-1 but yeah, should work.

My ThinkPad has a second slot for external batteries.
@CarterLi CarterLi merged commit 3e5d129 into fastfetch-cli:dev Feb 19, 2025
@mmuman mmuman deleted the haiku-battery branch February 19, 2025 14:22
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