Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/TheThingsNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down