From 707b5ce3e92fbcc76446b696b12c3921578d85b0 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sat, 23 Sep 2023 13:30:16 -0600 Subject: [PATCH] Update RF24Network.cpp #214 --- RF24Network.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RF24Network.cpp b/RF24Network.cpp index db8abe64..7b963eba 100644 --- a/RF24Network.cpp +++ b/RF24Network.cpp @@ -92,10 +92,8 @@ void ESBNetwork::begin(uint8_t _channel, uint16_t _node_address) radio.setChannel(_channel); #if defined (multichannel) - baseChannel = USE_CURRENT_CHANNEL == 255 ? 97 : _channel; - //Serial.print("Base Chan:"); - //Serial.println(baseChannel); - networkChannel = baseChannel; + baseChannel = USE_CURRENT_CHANNEL == 255 ? radio.getChannel() : _channel; + networkChannel = baseChannel; #endif //radio.enableDynamicAck(); radio.setAutoAck(1);