Implement explicit mode support

This commit is contained in:
Callan Bryant 2020-01-09 14:22:38 +00:00
parent b8c1a73000
commit d0b817adb9
No known key found for this signature in database
GPG key ID: C31FA9DF3ACBFFAA
2 changed files with 2 additions and 1 deletions

View file

@ -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;
_preambleLength = preambleLength;
_tcxoDelay = 0;
_headerType = SX126X_LORA_HEADER_EXPLICIT;
// reset the module and verify startup
int16_t state = reset();

View file

@ -834,7 +834,7 @@ class SX126x: public PhysicalLayer {
#endif
Module* _mod;
uint8_t _bw, _sf, _cr, _ldro, _crcType;
uint8_t _bw, _sf, _cr, _ldro, _crcType, _headerType;
uint16_t _preambleLength;
float _bwKhz;