From f1968f98573ad55d7e75d5608b330ac0e17e1ec4 Mon Sep 17 00:00:00 2001 From: 3djc Date: Thu, 10 Aug 2023 15:48:37 +0200 Subject: [PATCH] fix: QX7 PCBREV detection (#3922) Summary of changes: - PCBREV detection for X7 was disabled as part of early 2.10 work - It leads to SPORT port not been available on X7 - Once enable, option is back, tested flashing a receiver ok --- radio/src/targets/taranis/hal.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/radio/src/targets/taranis/hal.h b/radio/src/targets/taranis/hal.h index f68a69236..26fbfa679 100644 --- a/radio/src/targets/taranis/hal.h +++ b/radio/src/targets/taranis/hal.h @@ -2150,15 +2150,15 @@ #define TELEMETRY_TIMER_IRQHandler TIM1_TRG_COM_TIM11_IRQHandler // PCBREV -// #if defined(RADIO_X7) - // #define PCBREV_RCC_AHB1Periph RCC_AHB1Periph_GPIOA - // #define PCBREV_GPIO GPIOA - // #define PCBREV_GPIO_PIN GPIO_Pin_14 // PA.14 - // #define PCBREV_GPIO_PULL_DOWN - // #define PCBREV_VALUE() GPIO_ReadInputDataBit(PCBREV_GPIO, PCBREV_GPIO_PIN) -// #else +#if defined(RADIO_X7) + #define PCBREV_RCC_AHB1Periph RCC_AHB1Periph_GPIOA + #define PCBREV_GPIO GPIOA + #define PCBREV_GPIO_PIN GPIO_Pin_14 // PA.14 + #define PCBREV_GPIO_PULL_DOWN + #define PCBREV_VALUE() GPIO_ReadInputDataBit(PCBREV_GPIO, PCBREV_GPIO_PIN) +#else #define PCBREV_RCC_AHB1Periph 0 -// #endif +#endif // USB Charger