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

Ds2438 fixes #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Ds2438 fixes #35

wants to merge 4 commits into from

Conversation

ukuehn
Copy link
Contributor

@ukuehn ukuehn commented Feb 1, 2023

Dear Brian,

I noticed that the conversion of the Vsense data seems incorrect if the returned number is negative, i.e. with the sign bit(s) set. As per the data sheet the register value is a 12+1 bit 2's complement value, so the negation of the 12 unsigned value is not the correct way to handle this situation. Please find a fix in the supplied patch.

Best regards,
Ulrich

@bcl bcl self-assigned this Feb 26, 2023
userial/ad26.c Show resolved Hide resolved
userial/ad26.c Outdated Show resolved Hide resolved
@bcl
Copy link
Owner

bcl commented Feb 26, 2023

Also, I don't have any hardware that is using this, so if someone can confirm the fix that would be helpful :)

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