Skip to content

Commit 76bf29e

Browse files
author
Daniel Jäckle
committed
Bug fix in LoRaMacMlmeRequest, case MLME_JOIN - when the node performs a rejoin, the MAC parameters must be reset to the default values.
1 parent b4d37f7 commit 76bf29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mac/LoRaMac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3887,7 +3887,7 @@ LoRaMacStatus_t LoRaMacMlmeRequest( MlmeReq_t *mlmeRequest )
38873887
macHdr.Value = 0;
38883888
macHdr.Bits.MType = FRAME_TYPE_JOIN_REQ;
38893889

3890-
IsLoRaMacNetworkJoined = false;
3890+
ResetMacParameters( );
38913891

38923892
JoinRequestTrials++;
38933893
LoRaMacParams.ChannelsDatarate = AlternateDatarate( JoinRequestTrials );

0 commit comments

Comments
 (0)