We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 319c686 commit c6f9295Copy full SHA for c6f9295
src/lmic/radio.c
@@ -904,9 +904,9 @@ static void rxlora (u1_t rxmode) {
904
905
// Errata 2.3 - receiver spurious reception of a LoRa signal
906
bw_t const bw = getBw(LMIC.rps);
907
- u1_t const rDetectOptimize = readReg(LORARegDetectOptimize);
+ u1_t const rDetectOptimize = (readReg(LORARegDetectOptimize) & 0x78) | 0x03;
908
if (bw < BW500) {
909
- writeReg(LORARegDetectOptimize, rDetectOptimize & 0x7F);
+ writeReg(LORARegDetectOptimize, rDetectOptimize);
910
writeReg(LORARegIffReq1, 0x40);
911
writeReg(LORARegIffReq2, 0x40);
912
} else {
0 commit comments