Skip to content

Commit b141068

Browse files
committed
Fix #400: don't allow DutyCycleReq to disable device tx
1 parent fd48de0 commit b141068

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lmic/lmic.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,9 +973,6 @@ scan_mac_cmds(
973973
case MCMD_DutyCycleReq: {
974974
#if !defined(DISABLE_MCMD_DutyCycleReq)
975975
u1_t cap = opts[oidx+1];
976-
// A value cap=0xFF means device is OFF unless enabled again manually.
977-
if( cap==0xFF )
978-
LMIC.opmode |= OP_SHUTDOWN; // stop any sending
979976
LMIC.globalDutyRate = cap & 0xF;
980977
LMIC.globalDutyAvail = os_getTime();
981978
DO_DEVDB(cap,dutyCap);

0 commit comments

Comments
 (0)