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

Update nrf5x temperature calculation #3988

Merged
merged 1 commit into from
May 12, 2024

Conversation

tyler-potyondy
Copy link
Contributor

Pull Request Overview

The nrf5x internal temperature sensor measures in 0.25 °C intervals. (i.e. 20 °C would have a register value of 80).

The prior calculation converting this to an integer value divided by 4 prior to scaling by 100 and subsequently lost the 0.25 precision.

This PR updates the calculation.

Testing Strategy

This pull request was tested on the nrf52840dk.

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

-prior calculation lost fractional value due to integer division
@github-actions github-actions bot added the nrf Change pertains to the nRF5x family of MCUs. label May 12, 2024
@brghena brghena added this pull request to the merge queue May 12, 2024
Merged via the queue into tock:master with commit ae86c83 May 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nrf Change pertains to the nRF5x family of MCUs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants