From 3aa91ecbbabd35bee228262c01ca866b18a429f6 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Mon, 26 Nov 2018 15:22:50 +0000 Subject: [PATCH] BLE: return phy_set_t in ConnectionParameters::getPhySet --- features/FEATURE_BLE/ble/gap/ConnectionParameters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h index bd4f897e83..5aecd15527 100644 --- a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h +++ b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h @@ -302,14 +302,14 @@ public: #if !defined(DOXYGEN_ONLY) - uint8_t getPhySet() const + phy_set_t getPhySet() const { phy_set_t set( _enabledPhy[LE_1M_INDEX], _enabledPhy[LE_2M_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 */