Fork of Semtech LoRaWAN stack
Fork of LoRaWAN-lib by
Diff: LoRaMac.cpp
- Branch:
- class_b
- Revision:
- 47:e7fd944a7215
- Parent:
- 39:ca51084123b8
--- 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; }