Skip to content

Commit

Permalink
fix: QX7 PCBREV detection (#3922)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
3djc authored Aug 10, 2023
1 parent c089777 commit f1968f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions radio/src/targets/taranis/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1968f9

Please sign in to comment.