mirror of
https://github.com/apache/nuttx.git
synced 2025-12-10 12:14:36 +08:00
stm32{f7}/adc: always increase initialization counter when adc_setup called
This commit is contained in:
@@ -2886,6 +2886,7 @@ static int adc_setup(struct adc_dev_s *dev)
|
||||
|
||||
if (priv->initialized > 0)
|
||||
{
|
||||
priv->initialized += 1;
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1798,6 +1798,7 @@ static int adc_setup(struct adc_dev_s *dev)
|
||||
|
||||
if (priv->initialized > 0)
|
||||
{
|
||||
priv->initialized += 1;
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user