From 71c0cf9b9a5e0d1f8a7b1c4249950f1717629dc3 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 26 Nov 2022 08:11:32 -0600 Subject: [PATCH] Don't set DIO2 switch if TXEN is defined --- src/mesh/SX126xInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/SX126xInterface.cpp b/src/mesh/SX126xInterface.cpp index 5559a7063..ea7600dfc 100644 --- a/src/mesh/SX126xInterface.cpp +++ b/src/mesh/SX126xInterface.cpp @@ -70,7 +70,7 @@ bool SX126xInterface::init() #if defined(SX126X_TXEN) && (SX126X_TXEN != RADIOLIB_NC) // lora.begin sets Dio2 as RF switch control, which is not true if we are manually controlling RX and TX if (res == RADIOLIB_ERR_NONE) - res = lora.setDio2AsRfSwitch(true); + res = lora.setDio2AsRfSwitch(false); #endif #if 0