You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/26 17:35:25 UTC

[incubator-nuttx] 06/09: boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c: fix nxstyle issues

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

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

commit 6b7b18e8351b2f26cccc3d284211c8ea14051dea
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Apr 25 21:04:07 2020 +0200

    boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c: fix nxstyle issues
---
 boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c
index 2f9eba6..84c62bf 100644
--- a/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c
+++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c
@@ -245,7 +245,7 @@ void adc12_handler(void)
       g_highpri.r_volt[g_highpri.current] =
         (float)g_highpri.r_val[g_highpri.current] * ref / bit;
 
-      if (g_highpri.current >= REG_NCHANNELS-1)
+      if (g_highpri.current >= REG_NCHANNELS - 1)
         {
           g_highpri.current = 0;
         }
@@ -282,6 +282,7 @@ void adc12_handler(void)
 #endif
 
 irq_out:
+
   /* Clear ADC pending interrupts */
 
   STM32_ADC_INT_ACK(adc, pending);
@@ -323,6 +324,7 @@ void dma1ch1_handler(void)
     }
 
 irq_out:
+
   /* Clear DMA pending interrupts */
 
   stm32_dma_intack(STM32_DMA1_CHAN1, pending);