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

drivers: max31865: fix under zero temperature calculation #71733

Closed

Conversation

odbasta
Copy link

@odbasta odbasta commented Apr 21, 2024

Fixes the signs on the third- and fourth-order coefficients used to calculate temperatures under zero.

Verified on PT100 RTD in environmental chamber down to -55degC.

References:

image

Fixes the sign on the third- and fourth-order coefficients used
to calculate temperatures under zero. Verified on PT100 RTD in
environmental chamber down to -55degC.

Signed-off-by: Andrew Basta <[email protected]>
@zephyrbot zephyrbot added Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. area: Sensors Sensors platform: ADI Analog Devices, Inc. labels Apr 21, 2024
@aasinclair aasinclair added the bug The issue is a bug, or the PR is fixing a bug label Apr 22, 2024
@kartben
Copy link
Collaborator

kartben commented Apr 22, 2024

did #68711 not already address this issue? this looks like this is now a double subtraction?

@odbasta
Copy link
Author

odbasta commented Apr 22, 2024

Yes @kartben you're absolutely correct, thank you for your review. I tested against an older release and didn't have that change yet.

I think this fix is marginally cleaner than #68711, as it keeps all the signs in one place instead of two, but I will close for now.

@odbasta odbasta closed this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug platform: ADI Analog Devices, Inc. Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants