arch/arm/src/stm32h7/stm32_adc: Reset channel counter before conversions

Signed-off-by: Sammy Tran <sammytran@geotab.com>

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
AI-Model: claude-sonnet-4.6
This commit is contained in:
Sammy Tran 2026-05-28 14:17:57 -04:00 committed by Lup Yuen Lee
parent 9e66023307
commit e2e5abde67

View file

@ -1947,6 +1947,7 @@ static int adc_ioctl(struct adc_dev_s *dev, int cmd, unsigned long arg)
{
case ANIOC_TRIGGER:
{
priv->current = 0;
adc_startconv(priv, true);
}
break;