mirror of https://github.com/ARMmbed/mbed-os.git
replace magic numbers
parent
a03aaa2342
commit
f3a64feaf1
|
@ -405,13 +405,13 @@ private:
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
switch (phy.value()) {
|
switch (phy.value()) {
|
||||||
case phy_t::LE_1M:
|
case phy_t::LE_1M:
|
||||||
index = 0;
|
index = LE_1M_INDEX;
|
||||||
break;
|
break;
|
||||||
case phy_t::LE_2M:
|
case phy_t::LE_2M:
|
||||||
index = 1;
|
index = LE_2M_INDEX;
|
||||||
break;
|
break;
|
||||||
case phy_t::LE_CODED:
|
case phy_t::LE_CODED:
|
||||||
index = 2;
|
index = LE_CODED_INDEX;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
index = MAX_PARAM_PHYS;
|
index = MAX_PARAM_PHYS;
|
||||||
|
|
Loading…
Reference in New Issue