mirror of https://github.com/ARMmbed/mbed-os.git
fix enum values
parent
838de80fbf
commit
0d95ccb4ba
|
@ -177,7 +177,7 @@ struct adv_data_flags_t {
|
||||||
adv_data_flags_t& setLimitedDiscoverable(bool enable = true) {
|
adv_data_flags_t& setLimitedDiscoverable(bool enable = true) {
|
||||||
_value &= ~0x03;
|
_value &= ~0x03;
|
||||||
if (enable) {
|
if (enable) {
|
||||||
_value |= LE_GENERAL_DISCOVERABLE;
|
_value |= LE_LIMITED_DISCOVERABLE;
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -211,11 +211,11 @@ struct adv_data_flags_t {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getlimitedDiscoverable() {
|
bool getlimitedDiscoverable() {
|
||||||
return _value& LE_GENERAL_DISCOVERABLE;
|
return _value& LE_LIMITED_DISCOVERABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getBrEdrNotSupported() {
|
bool getBrEdrNotSupported() {
|
||||||
return _value& LE_GENERAL_DISCOVERABLE;
|
return _value& BREDR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getSimultaneousLeBredrC() {
|
bool getSimultaneousLeBredrC() {
|
||||||
|
|
Loading…
Reference in New Issue