From cead4c3d592be2e1d13b90481f853d1d6089c9c5 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Mon, 22 Jul 2024 23:34:34 -0400 Subject: [PATCH] adding xtal --- src/lora_utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index 12a548f..0958f9a 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -79,6 +79,9 @@ namespace LoRa_Utils { logger.log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, "LoRa", "Set SPI pins!"); SPI.begin(RADIO_SCLK_PIN, RADIO_MISO_PIN, RADIO_MOSI_PIN); float freq = (float)currentLoRaType->frequency/1000000; + #if defined(RADIO_HAS_XTAL) + radio.XTAL = true; + #endif int state = radio.begin(freq); if (state == RADIOLIB_ERR_NONE) { #if defined(HAS_SX1262) || defined(HAS_SX1268)