Skip to content

Conversation

@faloj
Copy link
Contributor

@faloj faloj commented Nov 14, 2024

Fix the overflow encountered with too high resolution ADC output data when using adc_raw_to_millivolts. This is done by using int64_t instead of a int32_t for the internal computations.

@faloj faloj marked this pull request as draft November 14, 2024 11:30
@zephyrbot zephyrbot added the area: ADC Analog-to-Digital Converter (ADC) label Nov 14, 2024
@zephyrbot zephyrbot requested a review from anangl November 14, 2024 11:30
@faloj
Copy link
Contributor Author

faloj commented Nov 14, 2024

fixes #81363

Fix the overflow encountered with too high resolution ADC output data
when using adc_raw_to_millivolts. This is done by using int64_t instead
of a int32_t for the internal computations.

Signed-off-by: Johan Lafon <[email protected]>
@bjarki-andreasen
Copy link
Contributor

It seems there is no test suite or in-tree use of this API? I would expect the API change to break something? if there is not even a test suite testing the API, could you add one?

@bjarki-andreasen
Copy link
Contributor

also, is this ready for review? its in draft :)

@faloj
Copy link
Contributor Author

faloj commented Dec 18, 2024

There is actually tests that use adc_raw_to_millivolts/adc_raw_to_millivolts_dt. I did not changed these function signature, so the tests did not broke. This PR is in draft because I'm not sure this should be the preferred solution, hence the issue I have opened here : #81363.

@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Feb 17, 2025
@github-actions github-actions bot closed this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ADC Analog-to-Digital Converter (ADC) Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants