From e0e186c8318a330126bf5492e385eeefbff8cc44 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 26 Nov 2018 11:21:37 +0000 Subject: [PATCH] replace consts with a private enum --- features/FEATURE_BLE/ble/gap/ConnectionParameters.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h index c0038c5f44..018fb52723 100644 --- a/features/FEATURE_BLE/ble/gap/ConnectionParameters.h +++ b/features/FEATURE_BLE/ble/gap/ConnectionParameters.h @@ -119,10 +119,12 @@ namespace ble { * @see ble::Gap::connect() */ class ConnectionParameters { - static const uint8_t MAX_PARAM_PHYS = 3; - static const uint8_t LE_1M_INDEX = 0; - static const uint8_t LE_2M_INDEX = 1; - static const uint8_t LE_CODED_INDEX = 2; + enum { + LE_1M_INDEX = 0, + LE_2M_INDEX = 1, + LE_CODED_INDEX = 2, + MAX_PARAM_PHYS = 3 + }; public: /**