From 2477d0e385ddd382da2e3bfca28ee4f5812bf151 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 15 Nov 2018 09:54:58 +0000 Subject: [PATCH] BLE: Fix missing initialization in ble::phy_set_t. --- features/FEATURE_BLE/ble/BLETypes.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/features/FEATURE_BLE/ble/BLETypes.h b/features/FEATURE_BLE/ble/BLETypes.h index 6d60bc8d9f..e17d0a5723 100644 --- a/features/FEATURE_BLE/ble/BLETypes.h +++ b/features/FEATURE_BLE/ble/BLETypes.h @@ -1021,11 +1021,9 @@ public: * @param phy_2m Prefer LE 2M if avaiable * @param phy_coded Prefer coded modulation if avaiable */ - phy_set_t( - bool phy_1m, - bool phy_2m, - bool phy_coded - ) { + phy_set_t(bool phy_1m, bool phy_2m, bool phy_coded) : + _value() + { set_1m(phy_1m); set_2m(phy_2m); set_coded(phy_coded);