Skip to content

Commit

Permalink
Merge pull request #656 from ConnyBusy/patch-15
Browse files Browse the repository at this point in the history
Update main.c to handle test mode tx dutycycle for dutycle enabled regions
  • Loading branch information
mluis1 authored Jan 14, 2019
2 parents e198e09 + e970eae commit 3003771
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/apps/LoRaMac/classB/NucleoL476/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
*/
#define LORAWAN_ADR_ON 1

#if defined( REGION_EU868 )
#if defined( REGION_EU868 ) || defined( REGION_RU864 ) || defined( REGION_CN779 ) || defined( REGION_EU433 )

#include "LoRaMacTest.h"

Expand Down Expand Up @@ -727,7 +727,7 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
mibReq.Param.AdrEnable = true;
LoRaMacMibSetRequestConfirm( &mibReq );

#if defined( REGION_EU868 )
#if defined( REGION_EU868 ) || defined( REGION_RU864 ) || defined( REGION_CN779 ) || defined( REGION_EU433 )
LoRaMacTestSetDutyCycleOn( false );
#endif
}
Expand All @@ -748,7 +748,7 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
mibReq.Type = MIB_ADR;
mibReq.Param.AdrEnable = LORAWAN_ADR_ON;
LoRaMacMibSetRequestConfirm( &mibReq );
#if defined( REGION_EU868 )
#if defined( REGION_EU868 ) || defined( REGION_RU864 ) || defined( REGION_CN779 ) || defined( REGION_EU433 )
LoRaMacTestSetDutyCycleOn( LORAWAN_DUTYCYCLE_ON );
#endif
break;
Expand Down Expand Up @@ -794,7 +794,7 @@ static void McpsIndication( McpsIndication_t *mcpsIndication )
mibReq.Type = MIB_ADR;
mibReq.Param.AdrEnable = LORAWAN_ADR_ON;
LoRaMacMibSetRequestConfirm( &mibReq );
#if defined( REGION_EU868 )
#if defined( REGION_EU868 ) || defined( REGION_RU864 ) || defined( REGION_CN779 ) || defined( REGION_EU433 )
LoRaMacTestSetDutyCycleOn( LORAWAN_DUTYCYCLE_ON );
#endif

Expand Down Expand Up @@ -1236,7 +1236,7 @@ int main( void )
mibReq.Param.AdrEnable = LORAWAN_ADR_ON;
LoRaMacMibSetRequestConfirm( &mibReq );

#if defined( REGION_EU868 )
#if defined( REGION_EU868 ) || defined( REGION_RU864 ) || defined( REGION_CN779 ) || defined( REGION_EU433 )
LoRaMacTestSetDutyCycleOn( LORAWAN_DUTYCYCLE_ON );
#endif
mibReq.Type = MIB_SYSTEM_MAX_RX_ERROR;
Expand Down

0 comments on commit 3003771

Please sign in to comment.