From dfbe6934bb452d7745acc3cf41fab0e4a6315881 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 20 Dec 2022 21:03:40 +0100 Subject: [PATCH] [SX126x] Set DIO2 to RF switch by default for FSK too In commit a1f94d9f ([SX126x] Set DIO2 to RF switch by default), this was changed for LoRa modulation in begin(), but since this is really a board-specific attribute, independent of the modulation used, there is no reason to have a different default for FSK (so this was probably just forgotten). --- src/modules/SX126x/SX126x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index e77e4028..f5de00b3 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -150,7 +150,7 @@ int16_t SX126x::beginFSK(float br, float freqDev, float rxBw, uint16_t preambleL state = setCRC(2); RADIOLIB_ASSERT(state); - state = setDio2AsRfSwitch(false); + state = setDio2AsRfSwitch(true); RADIOLIB_ASSERT(state); return(state);