Skip to content

Commit c23911e

Browse files
committed
BLE: Fix extraction of advertising element type.
1 parent 5302a7f commit c23911e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/ble/gap/AdvertisingDataParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class AdvertisingDataParser {
8787
element_t next()
8888
{
8989
element_t element = {
90-
(ble::adv_data_type_t::type) data[TYPE_INDEX],
90+
(ble::adv_data_type_t::type) data[position + TYPE_INDEX],
9191
data.subspan(position + VALUE_INDEX, current_length() - (TYPE_SIZE))
9292
};
9393

0 commit comments

Comments
 (0)