From 74158db7077fe6a5ccdcb4dd862675ff02ebf733 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 13 Mar 2023 13:47:52 +0100 Subject: [PATCH] arch/nrf52/nrf52_adc.c: fix device shutdown --- arch/arm/src/nrf52/nrf52_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/nrf52/nrf52_adc.c b/arch/arm/src/nrf52/nrf52_adc.c index 344bdb69b9..451976f760 100644 --- a/arch/arm/src/nrf52/nrf52_adc.c +++ b/arch/arm/src/nrf52/nrf52_adc.c @@ -809,7 +809,7 @@ static void nrf52_adc_shutdown(struct adc_dev_s *dev) /* Stop SAADC */ - nrf52_adc_putreg(priv, NRF52_SAADC_TASKS_STOP_OFFSET, 0); + nrf52_adc_putreg(priv, NRF52_SAADC_TASKS_STOP_OFFSET, 1); /* Wait for SAADC stopped */