You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/03/13 19:25:56 UTC

[nuttx] branch master updated: arch/nrf52/nrf52_adc.c: fix device shutdown

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 74158db707 arch/nrf52/nrf52_adc.c: fix device shutdown
74158db707 is described below

commit 74158db7077fe6a5ccdcb4dd862675ff02ebf733
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Mar 13 13:47:52 2023 +0100

    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 */