-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bigquad early access fix #1131
Bigquad early access fix #1131
Conversation
interpreted as system voltage when. This can be handy for BQD.
in Kconfig instead of in source code. Added them as mili Volts/Amps, because kbuild does not support floats.
PM status to easier decide what power state we should be in, regardless of platform. We still need to know if we're using the BQD though.
src/hal/src/pm_stm32f4.c
Outdated
|
||
if (isPgood && !isCharging) | ||
if (usingBigQuadDeck) |
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 would like to remove this dependency and have the BiqQuaddeck driver call a function to enable this behavior instead. Something like pmIgnoreChargedState()
Made BQD driver call into pm instead to ignore charging/charged state, which is needed for correct low-battery warnings when using BQD.
I agree that it makes more sense to not have the dependency in the |
The merge of PR #1132 might create some conflicts. |
Enabled external battery voltage measurements to be used as system votlage (useful for Big Quad deck).
Updated power state handling to support lowPower state regardless of platform and if Big Quad deck is connected.
Moved constants from source code to kbuild.