diff --git a/src/lmic/lmic_as923.c b/src/lmic/lmic_as923.c index 5c4c05dd..263291a5 100644 --- a/src/lmic/lmic_as923.c +++ b/src/lmic/lmic_as923.c @@ -448,7 +448,7 @@ ostime_t LMICas923_nextTx(ostime_t now) { #if !defined(DISABLE_BEACONS) void LMICas923_setBcnRxParams(void) { LMIC.dataLen = 0; - LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3; + LMIC.freq = AS923_FBCN; LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN); } #endif // !DISABLE_BEACONS diff --git a/src/lmic/lmic_eu868.c b/src/lmic/lmic_eu868.c index c8653cba..33462bfb 100644 --- a/src/lmic/lmic_eu868.c +++ b/src/lmic/lmic_eu868.c @@ -334,7 +334,7 @@ ostime_t LMICeu868_nextTx(ostime_t now) { #if !defined(DISABLE_BEACONS) void LMICeu868_setBcnRxParams(void) { LMIC.dataLen = 0; - LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3; + LMIC.freq = FREQ_BCN; LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN); } #endif // !DISABLE_BEACONS diff --git a/src/lmic/lmic_in866.c b/src/lmic/lmic_in866.c index 3cb066ec..51f82cc7 100644 --- a/src/lmic/lmic_in866.c +++ b/src/lmic/lmic_in866.c @@ -235,7 +235,7 @@ ostime_t LMICin866_nextTx(ostime_t now) { #if !defined(DISABLE_BEACONS) void LMICin866_setBcnRxParams(void) { LMIC.dataLen = 0; - LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3; + LMIC.freq = IN866_FB; LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN); } #endif // !DISABLE_BEACONS diff --git a/src/lmic/lmic_kr920.c b/src/lmic/lmic_kr920.c index e295516d..130dcc08 100644 --- a/src/lmic/lmic_kr920.c +++ b/src/lmic/lmic_kr920.c @@ -247,7 +247,7 @@ ostime_t LMICkr920_nextTx(ostime_t now) { #if !defined(DISABLE_BEACONS) void LMICkr920_setBcnRxParams(void) { LMIC.dataLen = 0; - LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3; + LMIC.freq = KR920_FBCN; LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN); } #endif // !DISABLE_BEACONS