Skip to content
Commit ebb5b9a5 authored by Andrzej Kaczmarek's avatar Andrzej Kaczmarek Committed by Anas Nashif
Browse files

Bluetooth: shell: Fix 'bt per-adv-data'



ad_len parameter is not length of complete advertising data, but number
of bt_data structs passed to bt_le_per_adv_set_data - we pass only one.

Also memset target buffer before converting hex string so data shorter
than specified will be right-padded with zeroes instead of some
leftovers.

Signed-off-by: default avatarAndrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
parent d91fd612
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment