From e970eae2a9bb1eef01b276df6f73d3bf49e2eb07 Mon Sep 17 00:00:00 2001 From: ConnyBusy <42280888+ConnyBusy@users.noreply.github.com> Date: Sun, 13 Jan 2019 19:16:16 +0100 Subject: [PATCH] Update main.c --- src/apps/LoRaMac/classB/NucleoL476/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/LoRaMac/classB/NucleoL476/main.c b/src/apps/LoRaMac/classB/NucleoL476/main.c index 289689366..618d2d426 100644 --- a/src/apps/LoRaMac/classB/NucleoL476/main.c +++ b/src/apps/LoRaMac/classB/NucleoL476/main.c @@ -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" @@ -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 } @@ -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; @@ -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 @@ -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;