diff --git a/src/modules/LLCC68/LLCC68.cpp b/src/modules/LLCC68/LLCC68.cpp index e9ca8304..18ce03dd 100644 --- a/src/modules/LLCC68/LLCC68.cpp +++ b/src/modules/LLCC68/LLCC68.cpp @@ -127,8 +127,9 @@ int16_t LLCC68::setModem(ModemType_t modem) { case(ModemType_t::LRFHSS): { return(this->beginLRFHSS()); } break; + default: + return(RADIOLIB_ERR_WRONG_MODEM); } - return(RADIOLIB_ERR_WRONG_MODEM); } #endif diff --git a/src/modules/SX126x/SX1262.cpp b/src/modules/SX126x/SX1262.cpp index 70b4e56a..c4e20eb2 100644 --- a/src/modules/SX126x/SX1262.cpp +++ b/src/modules/SX126x/SX1262.cpp @@ -156,8 +156,9 @@ int16_t SX1262::setModem(ModemType_t modem) { case(ModemType_t::LRFHSS): { return(this->beginLRFHSS()); } break; + default: + return(RADIOLIB_ERR_WRONG_MODEM); } - return(RADIOLIB_ERR_WRONG_MODEM); } #endif diff --git a/src/modules/SX126x/SX1268.cpp b/src/modules/SX126x/SX1268.cpp index 588d7c40..a8095b5a 100644 --- a/src/modules/SX126x/SX1268.cpp +++ b/src/modules/SX126x/SX1268.cpp @@ -151,8 +151,9 @@ int16_t SX1268::setModem(ModemType_t modem) { case(ModemType_t::LRFHSS): { return(this->beginLRFHSS()); } break; + default: + return(RADIOLIB_ERR_WRONG_MODEM); } - return(RADIOLIB_ERR_WRONG_MODEM); } #endif