mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix extraction of advertising element type.
parent
5302a7f599
commit
c23911e3d8
|
@ -87,7 +87,7 @@ public:
|
||||||
element_t next()
|
element_t next()
|
||||||
{
|
{
|
||||||
element_t element = {
|
element_t element = {
|
||||||
(ble::adv_data_type_t::type) data[TYPE_INDEX],
|
(ble::adv_data_type_t::type) data[position + TYPE_INDEX],
|
||||||
data.subspan(position + VALUE_INDEX, current_length() - (TYPE_SIZE))
|
data.subspan(position + VALUE_INDEX, current_length() - (TYPE_SIZE))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue