From 7b26a8bae0477d8c0f4f0d583ef9a902e1252a61 Mon Sep 17 00:00:00 2001 From: ConnyBusy <42280888+ConnyBusy@users.noreply.github.com> Date: Sat, 12 Jan 2019 19:54:19 +0100 Subject: [PATCH] Update main.c --- src/apps/LoRaMac/classA/SAML21/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/LoRaMac/classA/SAML21/main.c b/src/apps/LoRaMac/classA/SAML21/main.c index 5113e2eb0..14ab14232 100644 --- a/src/apps/LoRaMac/classA/SAML21/main.c +++ b/src/apps/LoRaMac/classA/SAML21/main.c @@ -74,7 +74,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" @@ -699,7 +699,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 } @@ -720,7 +720,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; @@ -766,7 +766,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 @@ -1054,7 +1054,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 ); #if( USE_TTN_NETWORK == 1 )