Skip to content

Commit dcc589f

Browse files
author
Daniel Jäckle
committed
Change conditions in SetNextChannel.
1 parent aa65772 commit dcc589f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mac/LoRaMac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ static bool SetNextChannel( TimerTime_t* time )
16741674
#endif
16751675

16761676
// Update Aggregated duty cycle
1677-
if( AggregatedTimeOff < TimerGetElapsedTime( AggregatedLastTxDoneTime ) )
1677+
if( AggregatedTimeOff <= TimerGetElapsedTime( AggregatedLastTxDoneTime ) )
16781678
{
16791679
AggregatedTimeOff = 0;
16801680

@@ -1683,7 +1683,7 @@ static bool SetNextChannel( TimerTime_t* time )
16831683
{
16841684
if( DutyCycleOn == true )
16851685
{
1686-
if( Bands[i].TimeOff < TimerGetElapsedTime( Bands[i].LastTxDoneTime ) )
1686+
if( Bands[i].TimeOff <= TimerGetElapsedTime( Bands[i].LastTxDoneTime ) )
16871687
{
16881688
Bands[i].TimeOff = 0;
16891689
}

0 commit comments

Comments
 (0)