Skip to content

saadc: Clear events_calibratedone before calibration#298

Merged
bors[bot] merged 1 commit intonrf-rs:masterfrom
Dirbaio:patch-1
Mar 1, 2021
Merged

saadc: Clear events_calibratedone before calibration#298
bors[bot] merged 1 commit intonrf-rs:masterfrom
Dirbaio:patch-1

Conversation

@Dirbaio
Copy link
Copy Markdown
Member

@Dirbaio Dirbaio commented Mar 1, 2021

Without this, if you initialize SAADC for a second time, the events_calibratedone is still set from before, so the while loop doesn't wait for calibration to be done. This causes garbage readings if you read immediately after, because calibration is still running.

Without this, if you initialize SAADC for a second time, the events_calibratedone is still set from before, so the while loop doesn't wait for calibration to be done. This causes garbage readings if you read immediately after, because calibration is still running.
@Yatekii
Copy link
Copy Markdown
Contributor

Yatekii commented Mar 1, 2021

LGTM :)

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Mar 1, 2021

Build succeeded:

@bors bors Bot merged commit f39d042 into nrf-rs:master Mar 1, 2021
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