at32/adc: always increase initialization counter when adc_setup called
This commit is contained in:
parent
577bdbf1fc
commit
b7fca7ff75
@ -2458,6 +2458,7 @@ static int adc_setup(struct adc_dev_s *dev)
|
||||
|
||||
if (priv->initialized > 0)
|
||||
{
|
||||
priv->initialized += 1;
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user