From a6905cc88f5e079109b9be156e26d6b1ca251d74 Mon Sep 17 00:00:00 2001 From: Konrad Kuchciak Date: Tue, 4 Sep 2018 06:37:17 +0200 Subject: [PATCH] adc: fix adc_read_n2 test case Change-Id: I408ea83f787a5f48f883a3455dc660f1a7039d9e Signed-off-by: Konrad Kuchciak --- test/src/test_peripheral_adc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/src/test_peripheral_adc.c b/test/src/test_peripheral_adc.c index 20595c0..72645e7 100644 --- a/test/src/test_peripheral_adc.c +++ b/test/src/test_peripheral_adc.c @@ -224,10 +224,8 @@ int test_peripheral_io_adc_peripheral_adc_read_n2(void) peripheral_adc_h adc_h = NULL; - uint32_t value; - if (g_feature == false) { - ret = peripheral_adc_read(adc_h, &value); + ret = peripheral_adc_read(adc_h, NULL); if (ret != PERIPHERAL_ERROR_NOT_SUPPORTED) return ret; @@ -236,7 +234,7 @@ int test_peripheral_io_adc_peripheral_adc_read_n2(void) if (ret != PERIPHERAL_ERROR_NONE) return ret; - ret = peripheral_adc_read(adc_h, &value); + ret = peripheral_adc_read(adc_h, NULL); if (ret != PERIPHERAL_ERROR_INVALID_PARAMETER) { peripheral_adc_close(adc_h); return ret; -- 2.34.1