mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
3a0fb4b9bf
commit
5a03e04f21
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue