From 12ab16718dab39d7457468ff659688295f46760e Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 17 Dec 2019 10:23:41 +0100 Subject: [PATCH] Cosmetics --- radio/src/targets/horus/board.h | 6 +++--- radio/src/targets/horus/pwr_driver.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/targets/horus/board.h b/radio/src/targets/horus/board.h index 7e36df57a..c6cb49e87 100644 --- a/radio/src/targets/horus/board.h +++ b/radio/src/targets/horus/board.h @@ -27,9 +27,9 @@ #include "hal.h" PACK(typedef struct { - uint8_t pcbrev : 2; - uint8_t sticksPwmDisabled : 1; - uint8_t pxx2Enabled : 1; + uint8_t pcbrev:2; + uint8_t sticksPwmDisabled:1; + uint8_t pxx2Enabled:1; }) HardwareOptions; extern HardwareOptions hardwareOptions; diff --git a/radio/src/targets/horus/pwr_driver.cpp b/radio/src/targets/horus/pwr_driver.cpp index aa9e13497..2b08f2b2b 100644 --- a/radio/src/targets/horus/pwr_driver.cpp +++ b/radio/src/targets/horus/pwr_driver.cpp @@ -52,8 +52,8 @@ void pwrInit() GPIO_InitStructure.GPIO_Pin = PWR_SWITCH_GPIO_PIN; GPIO_Init(PWR_SWITCH_GPIO, &GPIO_InitStructure); - // PCBREV #if defined(PCBREV_GPIO_PIN) + // PCBREV GPIO_InitStructure.GPIO_Pin = PCBREV_GPIO_PIN; GPIO_Init(PCBREV_GPIO, &GPIO_InitStructure); hardwareOptions.pcbrev = PCBREV_VALUE();