Fork of Semtech LoRaWAN stack

Fork of LoRaWAN-lib by canuck lehead

Branch:
class_b
Revision:
39:ca51084123b8
Parent:
38:182ba91524e4
Child:
47:e7fd944a7215
diff -r 182ba91524e4 -r ca51084123b8 LoRaMac.cpp
--- a/LoRaMac.cpp	Wed Aug 09 16:20:21 2017 -0400
+++ b/LoRaMac.cpp	Tue Aug 15 17:09:12 2017 -0400
@@ -1502,7 +1502,7 @@
             {
                 if( MlmeConfirmQueue[i].MlmeRequest == MLME_BEACON_ACQUISITION )
                 {
-                    if( LoRaMacClassBIsAcquisitionPending( ) == true )
+                    if( ( LoRaMacClassBIsAcquisitionPending( ) == true ) || ( LoRaMacClassBIsAcquisitionTimerSet() == true ) )
                     {
                         MlmeConfirmQueue[0].MlmeRequest = MLME_BEACON_ACQUISITION;
                         MlmeConfirmQueue[0].Status = MlmeConfirmQueue[i].Status;
@@ -1510,8 +1510,10 @@
                     }
                 }
                 j--;
+
                 MlmeConfirm.Status = MlmeConfirmQueue[i].Status;
                 MlmeConfirm.MlmeRequest = MlmeConfirmQueue[i].MlmeRequest;
+
                 LoRaMacPrimitives->MacMlmeConfirm( &MlmeConfirm );
             }
             MlmeConfirmQueueCnt = j;