This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 3e3427d3391ead3ceac27c52f00484389ac3d1f4
Author: Sammy Tran <[email protected]>
AuthorDate: Fri May 29 10:01:15 2026 -0400

    arch/arm/src/stm32h5/stm32_adc: Reset channel counter before conversions
    
    Signed-off-by: Sammy Tran <[email protected]>
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    AI-Model: claude-sonnet-4.6
---
 arch/arm/src/stm32h5/stm32_adc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/src/stm32h5/stm32_adc.c b/arch/arm/src/stm32h5/stm32_adc.c
index 75bb194c5da..a503d233a94 100644
--- a/arch/arm/src/stm32h5/stm32_adc.c
+++ b/arch/arm/src/stm32h5/stm32_adc.c
@@ -1782,6 +1782,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;

Reply via email to