From c4fc9cd787b5eb5c447dc513c30c3f9c5b6b7ffd Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Tue, 11 Feb 2020 13:59:47 -0300 Subject: [PATCH 1/2] v3.1.0 - sx1272 - line misspelled I found this misspelled on the code when I tried to use sx1272 lora module. --- src/lmic/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmic/radio.c b/src/lmic/radio.c index fdbbf19d..87de1d3a 100644 --- a/src/lmic/radio.c +++ b/src/lmic/radio.c @@ -534,7 +534,7 @@ static void configLoraModem () { // set ModemConfig2 (sf, AgcAutoOn=1 SymbTimeoutHi) u1_t mc2; - mc2 = (SX1272_MC2_SF7 + ((sf-1)<<4)) | 0x04 | ((LMIC.rxsyms >> 8) & 0x3)); + mc2 = ((SX1272_MC2_SF7 + ((sf-1)<<4)) | 0x04 | ((LMIC.rxsyms >> 8) & 0x3)); #if CFG_TxContinuousMode // Only for testing From 4551a759393f95270af8c9a166509ce2524a2158 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Fri, 14 Feb 2020 11:31:10 -0300 Subject: [PATCH 2/2] Update radio.c Remove extra `(` and `)` --- src/lmic/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmic/radio.c b/src/lmic/radio.c index 87de1d3a..07eae61a 100644 --- a/src/lmic/radio.c +++ b/src/lmic/radio.c @@ -534,7 +534,7 @@ static void configLoraModem () { // set ModemConfig2 (sf, AgcAutoOn=1 SymbTimeoutHi) u1_t mc2; - mc2 = ((SX1272_MC2_SF7 + ((sf-1)<<4)) | 0x04 | ((LMIC.rxsyms >> 8) & 0x3)); + mc2 = (SX1272_MC2_SF7 + ((sf-1)<<4)) | 0x04 | ((LMIC.rxsyms >> 8) & 0x3); #if CFG_TxContinuousMode // Only for testing