Skip to content

Commit

Permalink
Adapt patch from #481 b7bee3f @sualko
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Feb 28, 2022
1 parent 96228f0 commit 74038dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lmic/lmic_as923.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_eu868.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_in866.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_kr920.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_FB;
LMIC.rps = setIh(setNocrc(dndr2rps((dr_t)DR_BCN), 1), LEN_BCN);
}
#endif // !DISABLE_BEACONS
Expand Down

0 comments on commit 74038dd

Please sign in to comment.