[SX127x] Added interface argument to Module::term (#146)
This commit is contained in:
parent
6e7554191f
commit
bff077af3c
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ int16_t SX127x::begin(uint8_t chipVersion, uint8_t syncWord, uint8_t currentLimi
|
||||||
// try to find the SX127x chip
|
// try to find the SX127x chip
|
||||||
if(!SX127x::findChip(chipVersion)) {
|
if(!SX127x::findChip(chipVersion)) {
|
||||||
RADIOLIB_DEBUG_PRINTLN(F("No SX127x found!"));
|
RADIOLIB_DEBUG_PRINTLN(F("No SX127x found!"));
|
||||||
_mod->term();
|
_mod->term(RADIOLIB_USE_SPI);
|
||||||
return(ERR_CHIP_NOT_FOUND);
|
return(ERR_CHIP_NOT_FOUND);
|
||||||
} else {
|
} else {
|
||||||
RADIOLIB_DEBUG_PRINTLN(F("Found SX127x!"));
|
RADIOLIB_DEBUG_PRINTLN(F("Found SX127x!"));
|
||||||
|
@ -57,7 +57,7 @@ int16_t SX127x::beginFSK(uint8_t chipVersion, float br, float freqDev, float rxB
|
||||||
// try to find the SX127x chip
|
// try to find the SX127x chip
|
||||||
if(!SX127x::findChip(chipVersion)) {
|
if(!SX127x::findChip(chipVersion)) {
|
||||||
RADIOLIB_DEBUG_PRINTLN(F("No SX127x found!"));
|
RADIOLIB_DEBUG_PRINTLN(F("No SX127x found!"));
|
||||||
_mod->term();
|
_mod->term(RADIOLIB_USE_SPI);
|
||||||
return(ERR_CHIP_NOT_FOUND);
|
return(ERR_CHIP_NOT_FOUND);
|
||||||
} else {
|
} else {
|
||||||
RADIOLIB_DEBUG_PRINTLN(F("Found SX127x!"));
|
RADIOLIB_DEBUG_PRINTLN(F("Found SX127x!"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue