Skip to content

Commit

Permalink
tests: drivers: adc_accuracy: add calibration before sampling
Browse files Browse the repository at this point in the history
Calibrate adc before taking measurement.

Signed-off-by: Bartlomiej Buczek <[email protected]>
  • Loading branch information
nordic-babu committed Oct 22, 2024
1 parent ab30b18 commit 3eaa712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/drivers/adc/adc_accuracy_test/src/ref_volt.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static int test_ref_to_adc(void)
struct adc_sequence sequence = {
.buffer = &sample_buffer,
.buffer_size = sizeof(sample_buffer),

Check notice on line 22 in tests/drivers/adc/adc_accuracy_test/src/ref_volt.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

tests/drivers/adc/adc_accuracy_test/src/ref_volt.c:22 - .buffer = &sample_buffer, + .buffer = &sample_buffer,
.calibrate = true,
};

const struct adc_dt_spec *adc_channel = get_adc_channel();
Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/adc/adc_accuracy_test/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ tests:
- ek_ra8m1
- frdm_mcxc242
- nrf52840dk/nrf52840
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp

0 comments on commit 3eaa712

Please sign in to comment.