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.
1.2-legacy
Vladislav Osmanov 2021-09-05 00:46:38 +03:00
rodzic 2ba68c9b6e
commit 00bf7879af
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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.