[CC1101] Added interface argument to Module::term
This commit is contained in:
parent
da177c9b2a
commit
3721d0a51b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ int16_t CC1101::begin(float freq, float br, float freqDev, float rxBw, int8_t po
|
||||||
|
|
||||||
if(!flagFound) {
|
if(!flagFound) {
|
||||||
RADIOLIB_DEBUG_PRINTLN(F("No CC1101 found!"));
|
RADIOLIB_DEBUG_PRINTLN(F("No CC1101 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 CC1101! (match by CC1101_REG_VERSION == 0x14)"));
|
RADIOLIB_DEBUG_PRINTLN(F("Found CC1101! (match by CC1101_REG_VERSION == 0x14)"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue