From f3a64feaf15e31d5e7bb508300672368884336cc Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 26 Nov 2018 11:26:26 +0000 Subject: [PATCH] replace magic numbers --- features/FEATURE_BLE/ble/gap/ConnectionParameters.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h index b023a2e5d3..95da1bb656 100644 --- a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h +++ b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h @@ -405,13 +405,13 @@ private: uint8_t index; switch (phy.value()) { case phy_t::LE_1M: - index = 0; + index = LE_1M_INDEX; break; case phy_t::LE_2M: - index = 1; + index = LE_2M_INDEX; break; case phy_t::LE_CODED: - index = 2; + index = LE_CODED_INDEX; break; default: index = MAX_PARAM_PHYS;