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

ina219: fix bus voltage measuring #576

Merged
merged 2 commits into from
Sep 27, 2023
Merged

Conversation

klsbecker
Copy link
Contributor

Fix issue #575

Changed the variable that read the 16 bit register to unsigned
ina219: fix bus voltage measuring
@UncleRus
Copy link
Owner

Sorry, but this is wrong fix.
Voltage CAN BE negative. See datasheet 8.6.3.1 Shunt Voltage Register

@klsbecker
Copy link
Contributor Author

Yes, the Shunt Voltsge can be negative, but the issue refers to the Bus Voltage. See datasheet 8.6.3.2 Bus Voltage Register.

@UncleRus
Copy link
Owner

You are absolutely right
I apologize for my inattention.

Thank you!

@UncleRus UncleRus merged commit 15c4da6 into UncleRus:master Sep 27, 2023
40 checks passed
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.

2 participants