Skip to content

Commit

Permalink
fix: revise T15 PCBREV (#5175)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored Jun 13, 2024
1 parent b4e33fc commit cce7ae6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions radio/src/targets/horus/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,8 @@

// PCBREV
#if defined(RADIO_T15)
#define PCBREV_GPIO_1 GPIO_PIN(GPIOH, 7) // PH.07
#define PCBREV_GPIO_2 GPIO_PIN(GPIOH, 8) // PH.08
#define PCBREV_VALUE() ((gpio_read(PCBREV_GPIO_1) | gpio_read(PCBREV_GPIO_2)) >> 7)
#define PCBREV_GPIO GPIO_PIN(GPIOH, 8) // PH.08
#define PCBREV_VALUE() (gpio_read(PCBREV_GPIO) >> 8)
#elif defined(PCBX10)
#define PCBREV_GPIO_1 GPIO_PIN(GPIOH, 7) // PH.07
#define PCBREV_GPIO_2 GPIO_PIN(GPIOH, 8) // PH.08
Expand Down

0 comments on commit cce7ae6

Please sign in to comment.