From a3820c89c50d0b83d6ee654f34093ae22dc09e08 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 12 Nov 2018 08:32:02 +0000 Subject: [PATCH] removed impossible case --- features/FEATURE_BLE/ble/gap/ExtendedConnectParameters.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/features/FEATURE_BLE/ble/gap/ExtendedConnectParameters.h b/features/FEATURE_BLE/ble/gap/ExtendedConnectParameters.h index 2b13762b91..810491390d 100644 --- a/features/FEATURE_BLE/ble/gap/ExtendedConnectParameters.h +++ b/features/FEATURE_BLE/ble/gap/ExtendedConnectParameters.h @@ -193,11 +193,7 @@ private: } else if (_enabledPhy[ble::phy_t::LE_2M]) { return 1; } 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 * of paramters - you need to enabled at least one phy */