stm32{f7}/adc: always increase initialization counter when adc_setup called

This commit is contained in:
raiden00pl
2023-10-02 14:13:47 +02:00
committed by Xiang Xiao
parent c52188f0bf
commit 577bdbf1fc
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2886,6 +2886,7 @@ static int adc_setup(struct adc_dev_s *dev)
if (priv->initialized > 0)
{
priv->initialized += 1;
return OK;
}
+1
View File
@@ -1798,6 +1798,7 @@ static int adc_setup(struct adc_dev_s *dev)
if (priv->initialized > 0)
{
priv->initialized += 1;
return OK;
}