BLE: Fix extraction of advertising element type.

pull/8904/head
Vincent Coubard 2018-11-28 17:15:54 +00:00
parent 5302a7f599
commit c23911e3d8
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public:
element_t next()
{
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))
};