Skip to content

Commit 4b59b2f

Browse files
committed
Do not use duty availability if dury rate equal 0
1 parent 2b75780 commit 4b59b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lmic/lmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ static bit_t processJoinAccept_nojoinframe(void) {
17111711
reportEventNoUpdate(EV_JOIN_TXCOMPLETE);
17121712
int failed = LMICbandplan_nextJoinState();
17131713

1714-
if((LMIC.txend - LMIC.globalDutyAvail) < 0) {
1714+
if(LMIC.globalDutyRate != 0 && (LMIC.txend - LMIC.globalDutyAvail) < 0) {
17151715
LMIC.txend = LMIC.globalDutyAvail;
17161716
// Add random delay 10s is arbitrary
17171717
LMIC.txend += LMICcore_rndDelay(10);

0 commit comments

Comments
 (0)