Skip to content

Commit

Permalink
Issue Lora-net#699 - Added Rx2 config parameters structure initializa…
Browse files Browse the repository at this point in the history
…tion in ResetMacParameters function.
  • Loading branch information
mluis1 committed Jul 2, 2019
1 parent 6231a5d commit 895b6cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mac/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2586,6 +2586,14 @@ static void ResetMacParameters( void )
// Initialize channel index.
MacCtx.Channel = 0;
MacCtx.NvmCtx->LastTxChannel = MacCtx.Channel;

// Initialize Rx2 config parameters.
MacCtx.RxWindow2Config.Channel = MacCtx.Channel;
MacCtx.RxWindow2Config.Frequency = MacCtx.NvmCtx->MacParams.Rx2Channel.Frequency;
MacCtx.RxWindow2Config.DownlinkDwellTime = MacCtx.NvmCtx->MacParams.DownlinkDwellTime;
MacCtx.RxWindow2Config.RepeaterSupport = MacCtx.NvmCtx->RepeaterSupport;
MacCtx.RxWindow2Config.RxContinuous = false;
MacCtx.RxWindow2Config.RxSlot = RX_SLOT_WIN_2;
}

/*!
Expand Down

0 comments on commit 895b6cd

Please sign in to comment.