From eda3bfb0e3c548caca98764e1af5fc4c1a525abb Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 23 Nov 2018 21:25:12 +0000 Subject: [PATCH] BLE: Explain magic constant in ble::Gap implementation. --- features/FEATURE_BLE/source/gap/Gap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/source/gap/Gap.cpp b/features/FEATURE_BLE/source/gap/Gap.cpp index d61cec786f..659c33adbc 100644 --- a/features/FEATURE_BLE/source/gap/Gap.cpp +++ b/features/FEATURE_BLE/source/gap/Gap.cpp @@ -26,13 +26,14 @@ bool Gap::isFeatureSupported(controller_supported_features_t feature) uint8_t Gap::getMaxAdvertisingSetNumber() { /* Requesting action from porter(s): override this API if this capability is supported. */ + // There is at least one advertising set available: the legacy advertising set return 1; } uint8_t Gap::getMaxAdvertisingDataLength() { /* Requesting action from porter(s): override this API if this capability is supported. */ - return 0x1F; + return LEGACY_ADVERTISING_MAX_SIZE; } ble_error_t Gap::createAdvertisingSet(