Merge pull request #9692 from naveenkaje/fix_ublox_celluar_warning

target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
pull/9715/head
Cruz Monrreal 2019-02-13 17:12:51 -06:00 committed by GitHub
commit e310458a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@ UBLOX_AT_CellularNetwork::~UBLOX_AT_CellularNetwork()
nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTechnology opRat)
{
nsapi_error_t ret = NSAPI_ERROR_OK;
switch (opRat) {
#if defined(TARGET_UBLOX_C030_U201) || defined(TARGET_UBLOX_C027)
case RAT_GSM:
@ -58,9 +60,9 @@ nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTe
#endif
default: {
_op_act = RAT_UNKNOWN;
return NSAPI_ERROR_UNSUPPORTED;
ret = NSAPI_ERROR_UNSUPPORTED;
}
}
return NSAPI_ERROR_OK;
return(ret);
}