BLE: return phy_set_t in ConnectionParameters::getPhySet

pull/8738/head
Vincent Coubard 2018-11-26 15:22:50 +00:00
parent a915748cbe
commit 3aa91ecbba
1 changed files with 2 additions and 2 deletions

View File

@ -302,14 +302,14 @@ public:
#if !defined(DOXYGEN_ONLY) #if !defined(DOXYGEN_ONLY)
uint8_t getPhySet() const phy_set_t getPhySet() const
{ {
phy_set_t set( phy_set_t set(
_enabledPhy[LE_1M_INDEX], _enabledPhy[LE_1M_INDEX],
_enabledPhy[LE_2M_INDEX], _enabledPhy[LE_2M_INDEX],
_enabledPhy[LE_CODED_INDEX] _enabledPhy[LE_CODED_INDEX]
); );
return set.value(); return set;
} }
/* these return pointers to arrays of settings valid only across the number of active PHYs */ /* these return pointers to arrays of settings valid only across the number of active PHYs */