Cellular: Fixed bc95 to accept only RAT_NB1 as it's only valid rat that modem supports.

pull/8847/head
Teppo Järvelin 2018-11-23 07:52:22 +02:00
parent 70dfbbfee4
commit 9095635c8f
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ AT_CellularNetwork::RegistrationMode QUECTEL_BC95_CellularNetwork::has_registrat
nsapi_error_t QUECTEL_BC95_CellularNetwork::set_access_technology_impl(RadioAccessTechnology opRat)
{
if (opRat != RAT_NB1) {
//TODO: Set as unknown or force to NB1?
_op_act = RAT_UNKNOWN;
// only rat that is supported by this modem
_op_act = RAT_NB1;
return NSAPI_ERROR_UNSUPPORTED;
}