mirror of https://github.com/ARMmbed/mbed-os.git
replace consts with a private enum
parent
528deb168f
commit
e0e186c831
|
|
@ -119,10 +119,12 @@ namespace ble {
|
||||||
* @see ble::Gap::connect()
|
* @see ble::Gap::connect()
|
||||||
*/
|
*/
|
||||||
class ConnectionParameters {
|
class ConnectionParameters {
|
||||||
static const uint8_t MAX_PARAM_PHYS = 3;
|
enum {
|
||||||
static const uint8_t LE_1M_INDEX = 0;
|
LE_1M_INDEX = 0,
|
||||||
static const uint8_t LE_2M_INDEX = 1;
|
LE_2M_INDEX = 1,
|
||||||
static const uint8_t LE_CODED_INDEX = 2;
|
LE_CODED_INDEX = 2,
|
||||||
|
MAX_PARAM_PHYS = 3
|
||||||
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue