diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index 8f49c29d..05022b6a 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -18,6 +18,7 @@ int16_t SX126x::begin(float bw, uint8_t sf, uint8_t cr, uint16_t syncWord, float _ldro = 0x00; _crcType = SX126X_LORA_CRC_ON; _preambleLength = preambleLength; + _tcxoDelay = 0; // set mode to standby int16_t state = standby(); diff --git a/src/modules/SX126x/SX126x.h b/src/modules/SX126x/SX126x.h index a643ebc7..d132cab8 100644 --- a/src/modules/SX126x/SX126x.h +++ b/src/modules/SX126x/SX126x.h @@ -830,7 +830,7 @@ class SX126x: public PhysicalLayer { float _dataRate; - uint32_t _tcxoDelay_us = 0; + uint32_t _tcxoDelay; int16_t config(uint8_t modem);