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

Ignore USB chargers when determining the presence of any power supplies #184

Closed
wants to merge 1 commit into from

Conversation

labre
Copy link

@labre labre commented Apr 6, 2022

This should be hopefully all devices with batteries.

Bug: #183

@labre
Copy link
Author

labre commented Apr 6, 2022

This PR has several issues.

  1. I forgot to open a new branch before pushing.
  2. It messes up the indentation.
  3. It changes semantics in that regard, that any successful polling of the first power_supply will leave SYSFS_POWER_SUPPLY at 0.

Closing this PR and opening a higher quality one.

@labre labre closed this Apr 6, 2022
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