From 00bf7879af8516ecf835d708c1ef801675172e73 Mon Sep 17 00:00:00 2001 From: Vladislav Osmanov <7123463+osmanovv@users.noreply.github.com> Date: Sun, 5 Sep 2021 00:46:38 +0300 Subject: [PATCH] SX1268 frequency initialization regardless of the region Otherwise, we get critical error 3 with result code -12 (ERR_INVALID_FREQUENCY): The supplied frequency value is invalid for this module. --- src/mesh/SX1268Interface.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesh/SX1268Interface.h b/src/mesh/SX1268Interface.h index 33f696c91..0c43c163b 100644 --- a/src/mesh/SX1268Interface.h +++ b/src/mesh/SX1268Interface.h @@ -10,6 +10,9 @@ class SX1268Interface : public RadioLibInterface SX1268 lora; public: + /// Initializing the frequency of the SX1268 module regardless of the region + float freq = 433.0; + SX1268Interface(RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq, RADIOLIB_PIN_TYPE rst, RADIOLIB_PIN_TYPE busy, SPIClass &spi); /// Initialise the Driver transport hardware and software.