Skip to content

Commit 74038dd

Browse files
committed
Adapt patch from #481 b7bee3f @sualko
1 parent 96228f0 commit 74038dd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lmic/lmic_as923.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ ostime_t LMICas923_nextTx(ostime_t now) {
448448
#if !defined(DISABLE_BEACONS)
449449
void LMICas923_setBcnRxParams(void) {
450450
LMIC.dataLen = 0;
451-
LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3;
451+
LMIC.freq = AS923_FBCN;
452452
LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN);
453453
}
454454
#endif // !DISABLE_BEACONS

src/lmic/lmic_eu868.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ ostime_t LMICeu868_nextTx(ostime_t now) {
334334
#if !defined(DISABLE_BEACONS)
335335
void LMICeu868_setBcnRxParams(void) {
336336
LMIC.dataLen = 0;
337-
LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3;
337+
LMIC.freq = FREQ_BCN;
338338
LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN);
339339
}
340340
#endif // !DISABLE_BEACONS

src/lmic/lmic_in866.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ ostime_t LMICin866_nextTx(ostime_t now) {
235235
#if !defined(DISABLE_BEACONS)
236236
void LMICin866_setBcnRxParams(void) {
237237
LMIC.dataLen = 0;
238-
LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3;
238+
LMIC.freq = IN866_FB;
239239
LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN);
240240
}
241241
#endif // !DISABLE_BEACONS

src/lmic/lmic_kr920.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ostime_t LMICkr920_nextTx(ostime_t now) {
247247
#if !defined(DISABLE_BEACONS)
248248
void LMICkr920_setBcnRxParams(void) {
249249
LMIC.dataLen = 0;
250-
LMIC.freq = LMIC.channelFreq[LMIC.bcnChnl] & ~(u4_t)3;
250+
LMIC.freq = KR920_FB;
251251
LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN);
252252
}
253253
#endif // !DISABLE_BEACONS

0 commit comments

Comments
 (0)