summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_adc.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_adc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_adc.c b/nuttx/arch/arm/src/stm32/stm32_adc.c
index a3ccf15d9..b8eac533a 100644
--- a/nuttx/arch/arm/src/stm32/stm32_adc.c
+++ b/nuttx/arch/arm/src/stm32/stm32_adc.c
@@ -710,16 +710,16 @@ static int adc_interrupt(FAR struct adc_dev_s *dev)
adc_receive(dev, priv->current, value);
- /* Set the channel number of the next channel that will complete conversion */
+ /* Set the channel number of the next channel that will complete conversion */
- if (++priv->current >= priv->nchannels)
- {
- /* Restart the conversion sequence from the beginning */
-#warning "Is there anything that you have to do to restart the conversion sequence?"
+ if (++priv->current >= priv->nchannels)
+ {
+ /* Restart the conversion sequence from the beginning */
+#warning "Missing logic"
/* Reset the index to the first channel to be converted */
- priv->current = 0;
+ priv->current = 0;
}
}