We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa65772 commit dcc589fCopy full SHA for dcc589f
src/mac/LoRaMac.c
@@ -1674,7 +1674,7 @@ static bool SetNextChannel( TimerTime_t* time )
1674
#endif
1675
1676
// Update Aggregated duty cycle
1677
- if( AggregatedTimeOff < TimerGetElapsedTime( AggregatedLastTxDoneTime ) )
+ if( AggregatedTimeOff <= TimerGetElapsedTime( AggregatedLastTxDoneTime ) )
1678
{
1679
AggregatedTimeOff = 0;
1680
@@ -1683,7 +1683,7 @@ static bool SetNextChannel( TimerTime_t* time )
1683
1684
if( DutyCycleOn == true )
1685
1686
- if( Bands[i].TimeOff < TimerGetElapsedTime( Bands[i].LastTxDoneTime ) )
+ if( Bands[i].TimeOff <= TimerGetElapsedTime( Bands[i].LastTxDoneTime ) )
1687
1688
Bands[i].TimeOff = 0;
1689
}
0 commit comments