forked from flipperdevices/flipperzero-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
power: Also ask charger if charge done
Also check the actual charge controller bq25896's CHRG_STAT to see if charging is complete. Don't only rely on the battery fuel gauge bq27220 reaching 100% to indicate charging is finished. This more accurately reflects the actual charging status and simplifies optionally reducing the battery charging voltage limit. Keeping the fuel gauge check ensures that dis/connecting from USB will still show as fully charged at default settings (no charge limit), since the bq25896 takes a few seconds to detect charging is complete. This adds a new function to the API: furi_hal_power_is_charging_done() Helps with flipperdevices#1158.
- Loading branch information
1 parent
873e1f1
commit 1f762cf
Showing
6 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters