[Si443x] Added interface argument to Module::term

This commit is contained in:
jgromes 2020-05-17 20:27:58 +02:00
parent e6caf3fc37
commit b0a6b1db08

View file

@ -16,7 +16,7 @@ int16_t Si443x::begin(float br, float freqDev, float rxBw) {
// try to find the Si443x chip // try to find the Si443x chip
if(!Si443x::findChip()) { if(!Si443x::findChip()) {
RADIOLIB_DEBUG_PRINTLN(F("No Si443x found!")); RADIOLIB_DEBUG_PRINTLN(F("No Si443x 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 Si443x!")); RADIOLIB_DEBUG_PRINTLN(F("Found Si443x!"));