From 77c9a295ed15263aea2eec340f75655d50c0a2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Grome=C5=A1?= Date: Mon, 30 May 2022 10:49:55 +0200 Subject: [PATCH] [SX127x] Fixed RF switch not actuated in continuous Rx mode (#531) --- src/modules/SX127x/SX127x.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 08680c06..20125c57 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -403,6 +403,8 @@ int16_t SX127x::startReceive(uint8_t len, uint8_t mode) { // FSK modem does not distinguish between Rx single and continuous if(mode == RADIOLIB_SX127X_RXCONTINUOUS) { + // set RF switch (if present) + _mod->setRfSwitchState(HIGH, LOW); return(setMode(RADIOLIB_SX127X_RX)); } }