Fork of Semtech LoRaWAN stack
Fork of LoRaWAN-lib by
Revision 47:e7fd944a7215, committed 2017-09-21
- Comitter:
- Shaun Nelson
- Date:
- Thu Sep 21 17:01:33 2017 -0400
- Branch:
- class_b
- Parent:
- 46:3e25cc2356de
- Child:
- 48:81c0f4c4dd2c
- Commit message:
- Remove static declaration from DevAddr
Changed in this revision
| LoRaMac.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}
