[Module] Fixed incorrect arguments
This commit is contained in:
parent
1a75ff837e
commit
16073f05ea
1 changed files with 7 additions and 10 deletions
|
@ -73,16 +73,13 @@ void Module::init(uint8_t interface) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Module::term() {
|
void Module::term() {
|
||||||
// stop hardware interface
|
// stop hardware interfaces
|
||||||
switch(interface) {
|
if(_spi != nullptr) {
|
||||||
case RADIOLIB_USE_SPI:
|
_spi->end();
|
||||||
_spi->end();
|
}
|
||||||
break;
|
|
||||||
case RADIOLIB_USE_UART:
|
if(ModuleSerial != nullptr) {
|
||||||
ModuleSerial->end(baudrate, SERIAL_8N1, _rx, _tx);
|
ModuleSerial->end();
|
||||||
break;
|
|
||||||
case RADIOLIB_USE_I2C:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue