Skip to content

Commit

Permalink
Disable TX diversity on FM30 (ExpressLRS#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry authored and qqqlab committed Feb 18, 2023
1 parent 37b3434 commit ad53502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/target/FM30_TX.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define GPIO_PIN_SCK PB13
#define GPIO_PIN_RST PB3
#define GPIO_PIN_TX_ENABLE PB9 // CTX on SE2431L
#define GPIO_PIN_ANT_CTRL PB4 // Low for left (stock), high for right (empty)
#define GPIO_PIN_ANT_CTRL_FIXED PB4 // Low for left (stock), high for right (empty). Named _FIXED to prevent auto-switching
#define GPIO_PIN_RCSIGNAL_RX PA10 // UART1
#define GPIO_PIN_RCSIGNAL_TX PA9 // UART1
#define GPIO_PIN_BUFFER_OE PB7
Expand Down
4 changes: 2 additions & 2 deletions src/src/tx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ static void setupTarget()
digitalWrite(GPIO_PIN_BLUETOOTH_EN, HIGH);
pinMode(GPIO_PIN_UART1RX_INVERT, OUTPUT); // RX1 inverter (TX handled in CRSF)
digitalWrite(GPIO_PIN_UART1RX_INVERT, HIGH);
pinMode(GPIO_PIN_ANT_CTRL, OUTPUT);
digitalWrite(GPIO_PIN_ANT_CTRL, LOW); // LEFT antenna
pinMode(GPIO_PIN_ANT_CTRL_FIXED, OUTPUT);
digitalWrite(GPIO_PIN_ANT_CTRL_FIXED, LOW); // LEFT antenna
HardwareSerial *uart2 = new HardwareSerial(USART2);
uart2->begin(57600);
CRSF::PortSecondary = uart2;
Expand Down

0 comments on commit ad53502

Please sign in to comment.