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 authored and henrikbrixandersen committed Oct 23, 2024
1 parent 557b5bd commit dfbcea7
Showing 1 changed file with 1 addition and 0 deletions.
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),
.calibrate = true,
};

const struct adc_dt_spec *adc_channel = get_adc_channel();
Expand Down

0 comments on commit dfbcea7

Please sign in to comment.