Skip to content

Commit f986493

Browse files
committed
Do not use duty availability if dury rate equal 0
1 parent a679639 commit f986493

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
@@ -1721,7 +1721,7 @@ static bit_t processJoinAccept_nojoinframe(void) {
17211721
reportEventNoUpdate(EV_JOIN_TXCOMPLETE);
17221722
int failed = LMICbandplan_nextJoinState();
17231723

1724-
if((LMIC.txend - LMIC.globalDutyAvail) < 0) {
1724+
if(LMIC.globalDutyRate != 0 && (LMIC.txend - LMIC.globalDutyAvail) < 0) {
17251725
LMIC.txend = LMIC.globalDutyAvail;
17261726
// Add random delay 10s is arbitrary
17271727
LMIC.txend += LMICcore_rndDelay(10);

0 commit comments

Comments
 (0)