From a5c152133877a0b07e831378ca5487a61df98c69 Mon Sep 17 00:00:00 2001 From: JP Meijers Date: Sat, 15 Jan 2022 14:35:20 +0200 Subject: [PATCH] Hotfix for #279 --- src/TheThingsNetwork.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/TheThingsNetwork.cpp b/src/TheThingsNetwork.cpp index 19ff3fc..ec6f380 100644 --- a/src/TheThingsNetwork.cpp +++ b/src/TheThingsNetwork.cpp @@ -1175,14 +1175,10 @@ bool TheThingsNetwork::setRx2Channel(uint32_t frequency, uint8_t dr){ } bool TheThingsNetwork::setChannelStatus (uint8_t channel, bool status){ - if (channel > 15) - return false; - if (status) - return sendChSet(MAC_CHANNEL_STATUS, channel, "on"); + return sendChSet(MAC_CHANNEL_STATUS, channel, "on"); else return sendChSet(MAC_CHANNEL_STATUS, channel, "off"); - } bool TheThingsNetwork::setChannelDCycle (uint8_t channel, float duty_cycle){ // in percent