Skip to content

Commit 59ff236

Browse files
authored
Hotfix for #279 (#281)
1 parent f0a4ddd commit 59ff236

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/TheThingsNetwork.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,14 +1175,10 @@ bool TheThingsNetwork::setRx2Channel(uint32_t frequency, uint8_t dr){
11751175
}
11761176

11771177
bool TheThingsNetwork::setChannelStatus (uint8_t channel, bool status){
1178-
if (channel > 15)
1179-
return false;
1180-
11811178
if (status)
1182-
return sendChSet(MAC_CHANNEL_STATUS, channel, "on");
1179+
return sendChSet(MAC_CHANNEL_STATUS, channel, "on");
11831180
else
11841181
return sendChSet(MAC_CHANNEL_STATUS, channel, "off");
1185-
11861182
}
11871183

11881184
bool TheThingsNetwork::setChannelDCycle (uint8_t channel, float duty_cycle){ // in percent

0 commit comments

Comments
 (0)