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

fix(Examples): Type overflow in ADC example #708

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Conversation

EricB-ADI
Copy link
Contributor

Pull Request Template

Description

In some driver versions, MXC_ADC_StartConversion directly returns the adc value. However, it may also returns an MXC error which can be negative. The data type of the adc value was unsigned. Therefore, the comparison is always false. This changes the type information such that the comparison can be made.

@EricB-ADI EricB-ADI added bug Something isn't working MAX32655 Related to the MAX32655 (ME17) MAX32680 Related to the MAX32680 (ME20) labels Aug 14, 2023
@EricB-ADI EricB-ADI merged commit 6cff8ac into main Aug 14, 2023
12 checks passed
@EricB-ADI EricB-ADI deleted the adc-example-error branch August 14, 2023 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MAX32655 Related to the MAX32655 (ME17) MAX32680 Related to the MAX32680 (ME20)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants