Revering unvanted changes
This commit is contained in:
parent
ac4ea556ae
commit
555b90abfa
2 changed files with 4 additions and 4 deletions
|
@ -84,8 +84,8 @@ int16_t SX127x::beginFSK(uint8_t chipVersion, float br, float freqDev, float rxB
|
||||||
state = SX127x::setBitRate(br);
|
state = SX127x::setBitRate(br);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
// set receiver bandwidth
|
// set frequency deviation
|
||||||
state = SX127x::setRxBandwidth(rxBw);
|
state = SX127x::setFrequencyDeviation(freqDev);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
//set AFC bandwidth
|
//set AFC bandwidth
|
||||||
|
@ -1219,7 +1219,7 @@ bool SX127x::findChip(uint8_t ver) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t SX127x::setMode(uint8_t mode) {
|
int16_t SX127x::setMode(uint8_t mode) {
|
||||||
return(_mod->SPIsetRegValue(SX127X_REG_OP_MODE, mode, 2, 0, 5));
|
return(_mod->SPIsetRegValue(SX127X_REG_OP_MODE, mode, 2, 0, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t SX127x::getActiveModem() {
|
int16_t SX127x::getActiveModem() {
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ class SX127x: public PhysicalLayer {
|
||||||
int16_t invertIQ(bool invertIQ);
|
int16_t invertIQ(bool invertIQ);
|
||||||
|
|
||||||
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
||||||
protected:
|
protected:
|
||||||
#endif
|
#endif
|
||||||
Module* _mod;
|
Module* _mod;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue