From 78e299145946ee8a66ee1f8aae51c1b7e6ce1a68 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 15 Feb 2025 14:48:16 +0100 Subject: [PATCH] [LR11x0] Use public frequency step and max packet length variables --- src/modules/LR11x0/LR11x0.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/LR11x0/LR11x0.cpp b/src/modules/LR11x0/LR11x0.cpp index 9a2085ba..9a25a9cb 100644 --- a/src/modules/LR11x0/LR11x0.cpp +++ b/src/modules/LR11x0/LR11x0.cpp @@ -8,7 +8,9 @@ #if !RADIOLIB_EXCLUDE_LR11X0 -LR11x0::LR11x0(Module* mod) : PhysicalLayer(RADIOLIB_LR11X0_FREQUENCY_STEP_SIZE, RADIOLIB_LR11X0_MAX_PACKET_LENGTH) { +LR11x0::LR11x0(Module* mod) : PhysicalLayer() { + this->freqStep = RADIOLIB_LR11X0_FREQUENCY_STEP_SIZE; + this->maxPacketLength = RADIOLIB_LR11X0_MAX_PACKET_LENGTH; this->mod = mod; this->XTAL = false; this->irqMap[RADIOLIB_IRQ_TX_DONE] = RADIOLIB_LR11X0_IRQ_TX_DONE;