[RFM9x] Swap frequency and bandwidth config in LoRa begin (#251)
This commit is contained in:
parent
1e47f8bca3
commit
9c73e9b2d7
2 changed files with 5 additions and 5 deletions
|
@ -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"));
|
RADIOLIB_DEBUG_PRINTLN(F("M\tRFM95"));
|
||||||
|
|
||||||
// configure publicly accessible settings
|
// configure publicly accessible settings
|
||||||
state = setFrequency(freq);
|
state = setBandwidth(bw);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
state = setBandwidth(bw);
|
state = setFrequency(freq);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
state = setSpreadingFactor(sf);
|
state = setSpreadingFactor(sf);
|
||||||
|
|
|
@ -20,10 +20,10 @@ int16_t RFM96::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t syncW
|
||||||
RADIOLIB_DEBUG_PRINTLN(F("M\tRFM96"));
|
RADIOLIB_DEBUG_PRINTLN(F("M\tRFM96"));
|
||||||
|
|
||||||
// configure publicly accessible settings
|
// configure publicly accessible settings
|
||||||
state = setFrequency(freq);
|
state = setBandwidth(bw);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
state = setBandwidth(bw);
|
state = setFrequency(freq);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
state = setSpreadingFactor(sf);
|
state = setSpreadingFactor(sf);
|
||||||
|
|
Loading…
Add table
Reference in a new issue