fix: Trainer Slave not recognized in Master for ACCESS radios

Fixes #1587
This commit is contained in:
Peter Feerick
2022-03-18 18:57:58 +10:00
committed by Peter Feerick
parent 7ba936bb96
commit da482b48b1
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ void extmoduleSendInvertedByte(uint8_t byte);
#if defined(TRAINER_DETECT_GPIO)
// Trainer detect is a switch on the jack
#define TRAINER_CONNECTED() (GPIO_ReadInputDataBit(TRAINER_DETECT_GPIO, TRAINER_DETECT_GPIO_PIN) == Bit_RESET)
#define TRAINER_CONNECTED() (GPIO_ReadInputDataBit(TRAINER_DETECT_GPIO, TRAINER_DETECT_GPIO_PIN) == TRAINER_DETECT_GPIO_PIN_VALUE)
#elif defined(PCBXLITES)
// Trainer is on the same connector than Headphones
enum JackState