replace consts with a private enum

pull/8738/head
paul-szczepanek-arm 2018-11-26 11:21:37 +00:00
parent 528deb168f
commit e0e186c831
1 changed files with 6 additions and 4 deletions

View File

@ -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:
/**