From 952997457294fb7319f938b70b54d4e257ebca00 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Sun, 11 Nov 2018 21:02:25 +0000 Subject: [PATCH] type already defined in ble types --- features/FEATURE_BLE/ble/Gap.h | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/features/FEATURE_BLE/ble/Gap.h b/features/FEATURE_BLE/ble/Gap.h index 53d9d8b824..ee0cf66d40 100644 --- a/features/FEATURE_BLE/ble/Gap.h +++ b/features/FEATURE_BLE/ble/Gap.h @@ -475,23 +475,6 @@ public: ADV_POLICY_FILTER_ALL_REQS = 3, }; - /** - * Scanning policy filter mode. - * - * @see Bluetooth Core Specification 4.2 (Vol. 6), Part B, Section 4.3.3. - */ - enum ScanningPolicyMode_t { - /** - * The whitelist is not used for scanning operations. - */ - SCAN_POLICY_IGNORE_WHITELIST = 0, - - /** - * The whitelist is used to filter incoming advertising. - */ - SCAN_POLICY_FILTER_ALL_ADV = 1, - }; - /** * Connection initiation policy filter mode. * @@ -580,6 +563,9 @@ public: */ typedef ble::scanning_policy_mode_t ScanningPolicyMode_t; + static const uint8_t SCAN_POLICY_IGNORE_WHITELIST = ble::SCAN_POLICY_IGNORE_WHITELIST; + static const uint8_t SCAN_POLICY_FILTER_ALL_ADV = ble::SCAN_POLICY_FILTER_ALL_ADV; + /** * Enumeration of BLE PHY */