From b7fca7ff75818f5292f398799e47bb79ccb7b36c Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 2 Oct 2023 14:14:12 +0200 Subject: [PATCH] at32/adc: always increase initialization counter when adc_setup called --- arch/arm/src/at32/at32_adc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/at32/at32_adc.c b/arch/arm/src/at32/at32_adc.c index 59efce00a2..e032787db7 100644 --- a/arch/arm/src/at32/at32_adc.c +++ b/arch/arm/src/at32/at32_adc.c @@ -2458,6 +2458,7 @@ static int adc_setup(struct adc_dev_s *dev) if (priv->initialized > 0) { + priv->initialized += 1; return OK; }