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

BQ3500_G_DONE_BIT_MASK in disableGauge method #6

Open
arkhipenko opened this issue Jan 26, 2024 · 1 comment
Open

BQ3500_G_DONE_BIT_MASK in disableGauge method #6

arkhipenko opened this issue Jan 26, 2024 · 1 comment

Comments

@arkhipenko
Copy link

Hi,

thank you for the library - this is a very thorough implementation and it is very helpful.

I am having an issue of never getting the correct status on the actual BQ3500 device in the bool BQ35100::disableGauge(void) method here:

bool BQ35100::disableGauge(void) {
    bool success = false;

    if (!stopGauge()) {
        return false;
    }

    success = waitforStatus(BQ3500_G_DONE_BIT_MASK, BQ3500_G_DONE_BIT_MASK);

no matter how long I set the timeouts BQ3500_G_DONE_BIT_MASK never happens.
So I am wondering if the gauge ever updates the status after stopGauge completes and should I just not wait for any status.
What is your experience with this?

Thank you.

@pilotak
Copy link
Owner

pilotak commented Jan 26, 2024

Well, the answer is: I do not know. It's about 4 years old project which is a real past for me and unfortunately I don't have any device containing this IC around to try out...

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

No branches or pull requests

2 participants