Skip to content

Ds2438 fixes#35

Open
ukuehn wants to merge 4 commits intobcl:masterfrom
ukuehn:ds2438-fixes
Open

Ds2438 fixes#35
ukuehn wants to merge 4 commits intobcl:masterfrom
ukuehn:ds2438-fixes

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
@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