From bea3ff1f538c3a9f15b817ff786bc55c739706e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 27 Feb 2020 14:14:58 +0100 Subject: [PATCH] global: fix LED defined --- global.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/global.h b/global.h index c110f03..358bf2c 100644 --- a/global.h +++ b/global.h @@ -625,17 +625,17 @@ #elif defined(BLACK_PILL) #define LED_PIN PB12 /**< GPIO pin */ #define LED_ON 0 /**< LED is on when pin is low */ -#elif defined (MAPLE_MINI) +#elif defined(MAPLE_MINI) #define LED_PIN PB1 /**< GPIO pin (pin 19) */ #define LED_ON 1 /**< LED is on when pin is high */ -#elif defined (STLINKV2) // it's sometimes a STM32F101, but it seems to have all STM32F103 features +#elif defined(STLINKV2) // it's sometimes a STM32F101, but it seems to have all STM32F103 features /* on ST-Link V2 clone dongle in aluminum case LED is on pin PA9 (remap USART1_TX if used) */ #define LED_PIN PA9 /**< GPIO pin */ #define LED_ON 1 /**< the color and on level depends on the clone */ -#elif defined (BLASTER) +#elif defined(BLASTER) #define LED_PIN PA5 /**< GPIO pin */ #define LED_ON 0 /**< red LED on when low (green LED is on when device is powered) */ -#elif defined (BUSVOODOO) +#elif defined(BUSVOODOO) #define LED_PIN PA8 /**< GPIO pin */ #define LED_ON 1 /**< blue LED is on when pin is high, red LED is on when pin is low, LED is off when LED is floating */ #endif