From 514d45c21943690f699851d1e2e3f037d3703580 Mon Sep 17 00:00:00 2001 From: geeksville Date: Tue, 16 Jun 2020 06:38:08 -0700 Subject: [PATCH] oops supposed to be TXEN --- src/mesh/SX1262Interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/SX1262Interface.cpp b/src/mesh/SX1262Interface.cpp index 3fe4afa3..3eba7444 100644 --- a/src/mesh/SX1262Interface.cpp +++ b/src/mesh/SX1262Interface.cpp @@ -35,7 +35,7 @@ bool SX1262Interface::init() int res = lora.begin(freq, bw, sf, cr, syncWord, power, currentLimit, preambleLength, tcxoVoltage, useRegulatorLDO); DEBUG_MSG("LORA init result %d\n", res); -#ifdef SX1262_RXEN +#ifdef SX1262_TXEN // lora.begin sets Dio2 as RF switch control, which is not true if we are manually controlling RX and TX if (res == ERR_NONE) res = lora.setDio2AsRfSwitch(false);