raiden00pl commented on code in PR #6810: URL: https://github.com/apache/incubator-nuttx/pull/6810#discussion_r941295057
########## arch/arm/src/stm32f7/stm32_adc.c: ########## @@ -1137,20 +1394,22 @@ static void adc_rccreset(struct stm32_dev_s *priv, bool reset) static void adc_enable(struct stm32_dev_s *priv, bool enable) { + bool enabled = false; + ainfo("enable: %d\n", enable ? 1 : 0); - if (enable) + if (!enabled && enable) { adc_modifyreg(priv, STM32_ADC_CR2_OFFSET, 0, ADC_CR2_ADON); } - else + else if (enabled && !enable) Review Comment: Remains from arch/stm32 which I missed. Removed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org