You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/17 15:59:53 UTC
[nuttx] 04/04: samv7/adc: always increase initialization counter when adc_setup called
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch releases/12.3
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b259311d1bdabd99c5a96ef88c212c6561961894
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Oct 2 14:14:30 2023 +0200
samv7/adc: always increase initialization counter when adc_setup called
---
arch/arm/src/samv7/sam_afec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/src/samv7/sam_afec.c b/arch/arm/src/samv7/sam_afec.c
index 74e3f6ae88..f169d45be7 100644
--- a/arch/arm/src/samv7/sam_afec.c
+++ b/arch/arm/src/samv7/sam_afec.c
@@ -868,6 +868,7 @@ static int afec_setup(struct adc_dev_s *dev)
if (priv->initialized > 0)
{
+ priv->initialized++;
return OK;
}