Skip to content

Commit

Permalink
Hotfix for #279 (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmeijers authored Jan 15, 2022
1 parent f0a4ddd commit 59ff236
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/TheThingsNetwork.cpp
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 59ff236

Please sign in to comment.