[Module] Fixed incorrect arguments

This commit is contained in:
jgromes 2020-02-20 12:38:51 +01:00
parent 1a75ff837e
commit 16073f05ea

View file

@ -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:
ModuleSerial->end(baudrate, SERIAL_8N1, _rx, _tx); if(ModuleSerial != nullptr) {
break; ModuleSerial->end();
case RADIOLIB_USE_I2C:
break;
} }
} }