From ce159685e832d075f98769051c2a792a79768b7b Mon Sep 17 00:00:00 2001 From: Bartlomiej Buczek Date: Wed, 31 Jul 2024 20:36:28 +0200 Subject: [PATCH] tests: drivers: adc_accuracy: add calibration before sampling Calibrate adc before taking measurement. Signed-off-by: Bartlomiej Buczek --- tests/drivers/adc/adc_accuracy_test/src/ref_volt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/drivers/adc/adc_accuracy_test/src/ref_volt.c b/tests/drivers/adc/adc_accuracy_test/src/ref_volt.c index 66eaddd5b036da4..9679720c51ef26a 100644 --- a/tests/drivers/adc/adc_accuracy_test/src/ref_volt.c +++ b/tests/drivers/adc/adc_accuracy_test/src/ref_volt.c @@ -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();