From e62b4b039f6d6ce195d6ed9dbf5cefaa62496dc4 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Fri, 10 May 2024 23:18:32 -0400 Subject: [PATCH] setRxBoostedGainMode --- src/lora_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index 75fc1d2..d8881d1 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -61,6 +61,7 @@ namespace LoRa_Utils { radio.setOutputPower(currentLoRaType->power); radio.setCurrentLimit(140); // still needs to be validated #endif + radio.setRxBoostedGainMode(true); #endif #ifdef HAS_SX127X LoRa.setFrequency(currentLoRaType->frequency); @@ -115,6 +116,7 @@ namespace LoRa_Utils { state = radio.setOutputPower(currentLoRaType->power); // max value 20 (when 20dB in setup 30dB in output as 400M30S has Low Noise Amp) radio.setCurrentLimit(140); // still needs to be validated #endif + radio.setRxBoostedGainMode(true); if (state == RADIOLIB_ERR_NONE) { logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "LoRa", "LoRa init done!"); } else {