Browse Source

blinky: Adding missing braquets on if

Hector PHARAM 3 năm trước cách đây
mục cha
commit
d66ce1a63e
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 2 0
      examples/blinky/blinky.c
  2. 2 0
      examples/blinky/blinky.cpp

+ 2 - 0
examples/blinky/blinky.c

@@ -27,7 +27,9 @@ void SysTick_Handler(void)
 
     // 1 Hz blinking
     if ((HAL_GetTick() % 500) == 0)
+    {
         HAL_GPIO_TogglePin(LED_PORT, LED_PIN);
+    }
 }
 
 void initGPIO()

+ 2 - 0
examples/blinky/blinky.cpp

@@ -30,7 +30,9 @@ extern "C"
 
         // 1 Hz blinking
         if ((HAL_GetTick() % 500) == 0)
+        {
             HAL_GPIO_TogglePin(LED_PORT, LED_PIN);
+        }
     }
 }