Fork of Semtech LoRaWAN stack

Fork of LoRaWAN-lib by canuck lehead

Branch:
class_b
Revision:
47:e7fd944a7215
Parent:
39:ca51084123b8
diff -r 3e25cc2356de -r e7fd944a7215 LoRaMac.cpp
--- a/LoRaMac.cpp	Thu Sep 21 17:00:15 2017 -0400
+++ b/LoRaMac.cpp	Thu Sep 21 17:01:33 2017 -0400
@@ -109,7 +109,7 @@
 /*!
  * Mote Address
  */
-static uint32_t LoRaMacDevAddr;
+uint32_t LoRaMacDevAddr;
 
 /*!
  * Multicast channels linked list
@@ -1503,6 +1503,7 @@
                 if( MlmeConfirmQueue[i].MlmeRequest == MLME_BEACON_ACQUISITION )
                 {
                     if( ( LoRaMacClassBIsAcquisitionPending( ) == true ) || ( LoRaMacClassBIsAcquisitionTimerSet() == true ) )
+                    // if( LoRaMacClassBIsAcquisitionPending( ) == true )
                     {
                         MlmeConfirmQueue[0].MlmeRequest = MLME_BEACON_ACQUISITION;
                         MlmeConfirmQueue[0].Status = MlmeConfirmQueue[i].Status;
@@ -1703,6 +1704,9 @@
             if( status == LORAMAC_STATUS_OK )
             {
                 LoRaMacDeviceClass = deviceClass;
+
+                // This starts ping slot
+                LoRaMacClassBResumeBeaconing( );
             }
             break;
         }