Update LoRaWAN MAC
Dependents: LoRaWAN-SX1272-Application-crash LoRaWAN-SX1272-Application-24-31-9sec Canada-SX1272-LoRaWAN-EEPROM Training-Aug2018-SX1272-X-NUCLEO-IKS01A2_Natalia
Fork of LoRaWAN-lib by
Diff: LoRaMac-api-v3.cpp
- Revision:
- 4:37c12dbc8dc7
- Parent:
- 3:b9d87593a8ae
diff -r b9d87593a8ae -r 37c12dbc8dc7 LoRaMac-api-v3.cpp --- a/LoRaMac-api-v3.cpp Mon Mar 14 09:09:54 2016 +0000 +++ b/LoRaMac-api-v3.cpp Fri May 13 14:51:50 2016 +0000 @@ -105,8 +105,7 @@ { case MLME_JOIN: { - // Status is OK, node has joined the network - LoRaMacEventInfo.Status = mlmeConfirm->Status; + // Status is OK, node has joined the network LoRaMacEventFlags.Bits.Tx = 1; LoRaMacEventFlags.Bits.Rx = 1; LoRaMacEventFlags.Bits.JoinAccept = 1; @@ -126,6 +125,7 @@ break; } } + LoRaMacEventInfo.Status = mlmeConfirm->Status; if( LoRaMacFlags.Bits.McpsInd != 1 ) {