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.
This commit is contained in:
Vladislav Osmanov
2021-09-09 23:55:36 +03:00
parent 2ba68c9b6e
commit 00bf7879af
+3
View File
@@ -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.