fix: revise T15 PCBREV (#5175)

This commit is contained in:
3djc
2024-06-14 07:48:01 +10:00
committed by GitHub
parent b4e33fc439
commit cce7ae60e3
+2 -3
View File
@@ -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