-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a23ea4
commit c26f1b6
Showing
2 changed files
with
5 additions
and
3 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
c26f1b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a similar fix in my local copy, but rather than read the voltage, I used the VBUS status from the AXP2101.
I think this is more resilient, as the VBUS source is only usable if the AXP2101 thinks it is good, and in testing there are windows where the voltage reading and the AXP2101 result disagree. It is also the same intent as the existing test in the AXP192 path
Happy to submit a pull request or you could use directly from the following sample.
AXP2102.cpp:
AXP2101.h
AXP.cpp
c26f1b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colintd
Thanks for the suggestion. Yes, love to see that code implemented.
c26f1b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colintd
Does your fix also works when only external (no USB) power is applied to the VBAT?
Regards
Rob Oudendijk