[RFM9x] Swap frequency and bandwidth config in LoRa begin (#251)

pull/261/head
jgromes 2021-02-13 18:14:12 +01:00
rodzic 1e47f8bca3
commit 9c73e9b2d7
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -20,10 +20,10 @@ int16_t RFM95::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t syncW
RADIOLIB_DEBUG_PRINTLN(F("M\tRFM95"));
// configure publicly accessible settings
state = setFrequency(freq);
state = setBandwidth(bw);
RADIOLIB_ASSERT(state);
state = setBandwidth(bw);
state = setFrequency(freq);
RADIOLIB_ASSERT(state);
state = setSpreadingFactor(sf);

Wyświetl plik

@ -18,12 +18,12 @@ int16_t RFM96::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t syncW
}
RADIOLIB_DEBUG_PRINTLN(F("M\tSX1278"));
RADIOLIB_DEBUG_PRINTLN(F("M\tRFM96"));
// configure publicly accessible settings
state = setFrequency(freq);
state = setBandwidth(bw);
RADIOLIB_ASSERT(state);
state = setBandwidth(bw);
state = setFrequency(freq);
RADIOLIB_ASSERT(state);
state = setSpreadingFactor(sf);