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 Xiang Xiao
parent 3a0fb4b9bf
commit 5a03e04f21

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;