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