From f9f423446f44ebc71011ffff85d02f6a4b98f9d3 Mon Sep 17 00:00:00 2001 From: KonradIT Date: Mon, 25 Nov 2024 22:31:52 +0100 Subject: [PATCH] Fix for lilygo T3S3 LR1121 TCXO voltage + calibration skip --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 88721c5..76803a8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -403,8 +403,10 @@ void init_radio() { // initialize SX1262 FSK modem at the initial frequency both.println("Init radio"); -#if defined(USING_SX1280PA) || defined(USING_LR1121) +#if defined(USING_SX1280PA) state = radio.beginGFSK(CONF_FREQ_BEGIN); +#elif defined(USING_LR1121) + state = radio.beginGFSK(CONF_FREQ_BEGIN, 4.8F, 5.0F, 156.2F, 10, 16U, 1.7F); #else state = radio.beginFSK(CONF_FREQ_BEGIN); #endif @@ -1140,7 +1142,7 @@ void loop(void) state = radio.setFrequency(freq); #else state = radio.setFrequency(r.current_frequency, - false); // false = no calibration need here + true); // true = no calibration need here #endif int radio_error_count = 0; if (state != RADIOLIB_ERR_NONE)