Skip to content

Commit 46e6356

Browse files
mluis1mvds00
authored andcommitted
Replaced MacCtx.AggregatedTimeOff with MacCtx.NvmCtx->AggregatedTimeOff
1 parent 3ad8974 commit 46e6356

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
@@ -2372,7 +2372,7 @@ static LoRaMacStatus_t ScheduleTx( bool allowDelayedTx )
23722372
nextChan.LastAggrTx = MacCtx.NvmCtx->AggregatedLastTxDoneTime;
23732373

23742374
// Select channel
2375-
status = RegionNextChannel( MacCtx.NvmCtx->Region, &nextChan, &MacCtx.Channel, &dutyCycleTimeOff, &MacCtx.NvmCtx->AggregatedTimeOff );
2375+
status = RegionNextChannel( MacCtx.NvmCtx->Region, &nextChan, &MacCtx.NvmCtx->Channel, &dutyCycleTimeOff, &MacCtx.NvmCtx->AggregatedTimeOff );
23762376

23772377
if( status != LORAMAC_STATUS_OK )
23782378
{
@@ -3204,7 +3204,7 @@ LoRaMacStatus_t LoRaMacInitialization( LoRaMacPrimitives_t* primitives, LoRaMacC
32043204

32053205
// Reset duty cycle times
32063206
MacCtx.NvmCtx->AggregatedLastTxDoneTime = 0;
3207-
MacCtx.AggregatedTimeOff = 0;
3207+
MacCtx.NvmCtx->AggregatedTimeOff = 0;
32083208

32093209
// Initialize timers
32103210
TimerInit( &MacCtx.TxDelayedTimer, OnTxDelayedTimerEvent );

0 commit comments

Comments
 (0)