From c93c0ecd813c1436fc4ed447b35bbdad8888539c Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 2 Oct 2023 14:14:30 +0200 Subject: [PATCH] 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; }