Implement explicit mode support
This commit is contained in:
parent
b8c1a73000
commit
d0b817adb9
2 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ int16_t SX126x::begin(float bw, uint8_t sf, uint8_t cr, uint8_t syncWord, float
|
||||||
_crcType = SX126X_LORA_CRC_ON;
|
_crcType = SX126X_LORA_CRC_ON;
|
||||||
_preambleLength = preambleLength;
|
_preambleLength = preambleLength;
|
||||||
_tcxoDelay = 0;
|
_tcxoDelay = 0;
|
||||||
|
_headerType = SX126X_LORA_HEADER_EXPLICIT;
|
||||||
|
|
||||||
// reset the module and verify startup
|
// reset the module and verify startup
|
||||||
int16_t state = reset();
|
int16_t state = reset();
|
||||||
|
|
|
@ -834,7 +834,7 @@ class SX126x: public PhysicalLayer {
|
||||||
#endif
|
#endif
|
||||||
Module* _mod;
|
Module* _mod;
|
||||||
|
|
||||||
uint8_t _bw, _sf, _cr, _ldro, _crcType;
|
uint8_t _bw, _sf, _cr, _ldro, _crcType, _headerType;
|
||||||
uint16_t _preambleLength;
|
uint16_t _preambleLength;
|
||||||
float _bwKhz;
|
float _bwKhz;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue