removed impossible case

pull/8738/head
paul-szczepanek-arm 2018-11-12 08:32:02 +00:00 committed by Vincent Coubard
parent 02d9b35bad
commit a3820c89c5
1 changed files with 1 additions and 5 deletions

View File

@ -193,12 +193,8 @@ private:
} else if (_enabledPhy[ble::phy_t::LE_2M]) { } else if (_enabledPhy[ble::phy_t::LE_2M]) {
return 1; return 1;
} else if (_enabledPhy[ble::phy_t::LE_CODED]) { } else if (_enabledPhy[ble::phy_t::LE_CODED]) {
if (isSwapped()) {
return 1;
} else {
return 2; return 2;
} }
}
/* this should never happen, it means you were trying to start a connection with a blank set /* this should never happen, it means you were trying to start a connection with a blank set
* of paramters - you need to enabled at least one phy */ * of paramters - you need to enabled at least one phy */
MBED_ASSERT("Trying to use connection parameters without any PHY defined."); MBED_ASSERT("Trying to use connection parameters without any PHY defined.");