From 2e6fefa289b633aa1602e75aaba67f3f1c4fe807 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:52:44 +0000 Subject: [PATCH] missing defaults --- features/FEATURE_BLE/ble/gap/ConnectionParameters.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h index 2d7b3b1388..d69122e4f3 100644 --- a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h +++ b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h @@ -43,7 +43,9 @@ public: conn_interval_t maxConnectionInterval = conn_interval_t::max(), slave_latency_t slaveLatency = slave_latency_t::min, supervision_timeout_t connectionSupervisionTimeout = supervision_timeout_t::max(), - phy_t phy = phy_t::LE_1M + phy_t phy = phy_t::LE_1M, + conn_event_length_t minEventLength = conn_event_length_t::min(), + conn_event_length_t maxEventLength = conn_event_length_t::max() ) : _filterPolicy(initiator_filter_policy_t::NO_FILTER), _ownAddressType(own_address_type_t::PUBLIC) @@ -62,6 +64,8 @@ public: _slaveLatency[phy_index] = slaveLatency.value(); _connectionSupervisionTimeout[phy_index] = connectionSupervisionTimeout.value(); _enabledPhy[phy_index] = true; + _minEventLength[phy_index] = minEventLength.value(); + _maxEventLength[phy_index] = maxEventLength.value(); } } };