Skip to content

Commit

Permalink
For issue #467, assume 10-bit rxsyms (partial correction)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Dec 22, 2019
1 parent 1dcfbfa commit 676dab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmic/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static void configLoraModem () {
// set ModemConfig1
writeReg(LORARegModemConfig1, mc1);

mc2 = (SX1272_MC2_SF7 + ((sf-1)<<4));
mc2 = (SX1272_MC2_SF7 + ((sf-1)<<4) + ((LMIC.rxsyms >> 8) & 0x3) );
if (getNocrc(LMIC.rps) == 0) {
mc2 |= SX1276_MC2_RX_PAYLOAD_CRCON;
}
Expand Down

0 comments on commit 676dab8

Please sign in to comment.