Skip to content

Commit 7534f8f

Browse files
nordic-baburlubos
authored andcommitted
[nrf fromlist] tests: drivers: adc_accuracy: add calibration before
sampling Calibrate adc before taking measurement. Upstream PR: zephyrproject-rtos/zephyr#76088 Signed-off-by: Bartlomiej Buczek <[email protected]>
1 parent 85ca81f commit 7534f8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/drivers/adc/adc_accuracy_test/src/ref_volt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ static int test_ref_to_adc(void)
2020
struct adc_sequence sequence = {
2121
.buffer = &sample_buffer,
2222
.buffer_size = sizeof(sample_buffer),
23+
.calibrate = true,
2324
};
2425

2526
const struct adc_dt_spec *adc_channel = get_adc_channel();

0 commit comments

Comments
 (0)