From e4daea6251e52f56379b9212162335babb12b76a Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 15 Feb 2025 14:48:23 +0100 Subject: [PATCH] [nRF24] Use public frequency step and max packet length variables --- src/modules/nRF24/nRF24.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/nRF24/nRF24.cpp b/src/modules/nRF24/nRF24.cpp index a6c2f841..c46404ee 100644 --- a/src/modules/nRF24/nRF24.cpp +++ b/src/modules/nRF24/nRF24.cpp @@ -2,7 +2,9 @@ #include #if !RADIOLIB_EXCLUDE_NRF24 -nRF24::nRF24(Module* mod) : PhysicalLayer(RADIOLIB_NRF24_FREQUENCY_STEP_SIZE, RADIOLIB_NRF24_MAX_PACKET_LENGTH) { +nRF24::nRF24(Module* mod) : PhysicalLayer() { + this->freqStep = RADIOLIB_NRF24_FREQUENCY_STEP_SIZE; + this->maxPacketLength = RADIOLIB_NRF24_MAX_PACKET_LENGTH; this->mod = mod; }