Skip to content

Commit e4abb34

Browse files
nordic-babu57300
authored andcommitted
[nrf fromtree] tests: drivers: adc_accuracy: add calibration before sampling
Calibrate adc before taking measurement. Signed-off-by: Bartlomiej Buczek <[email protected]> (cherry picked from commit dfbcea7)
1 parent 2fd1ff9 commit e4abb34

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)