mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
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:
parent
2ba68c9b6e
commit
00bf7879af
@ -10,6 +10,9 @@ class SX1268Interface : public RadioLibInterface
|
|||||||
SX1268 lora;
|
SX1268 lora;
|
||||||
|
|
||||||
public:
|
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);
|
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.
|
/// Initialise the Driver transport hardware and software.
|
||||||
|
Loading…
Reference in New Issue
Block a user