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