From d0b817adb990496f850b25fbe8a9e82211cc2280 Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Thu, 9 Jan 2020 14:22:38 +0000 Subject: [PATCH] Implement explicit mode support --- src/modules/SX126x/SX126x.cpp | 1 + src/modules/SX126x/SX126x.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index 57007104..671b4dee 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -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(); diff --git a/src/modules/SX126x/SX126x.h b/src/modules/SX126x/SX126x.h index d8cc8b70..24b47e63 100644 --- a/src/modules/SX126x/SX126x.h +++ b/src/modules/SX126x/SX126x.h @@ -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;