asif-test

Fork of LoRaWAN-lib by Semtech

Revision:
4:37c12dbc8dc7
Parent:
3:b9d87593a8ae
--- 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 )
     {