at32/adc: always increase initialization counter when adc_setup called

This commit is contained in:
raiden00pl
2023-10-02 14:14:12 +02:00
committed by Xiang Xiao
parent 14fe9978a7
commit f64833b36d

View File

@@ -2458,6 +2458,7 @@ static int adc_setup(struct adc_dev_s *dev)
if (priv->initialized > 0) if (priv->initialized > 0)
{ {
priv->initialized += 1;
return OK; return OK;
} }