mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
mesh: annotate device uuid is not copied in pb_adv_create_link
This commit is contained in:
parent
2e9a36a1d6
commit
e6542936bd
@ -76,7 +76,7 @@ void pb_adv_close_link(uint16_t pb_adv_cid, uint8_t reason);
|
||||
#ifdef ENABLE_MESH_PROVISIONER
|
||||
/**
|
||||
* Setup Link with unprovisioned device
|
||||
* @param DeviceUUID
|
||||
* @param DeviceUUID - data not copied
|
||||
* @returns pb_adv_cid or 0
|
||||
*/
|
||||
uint16_t pb_adv_create_link(const uint8_t * device_uuid);
|
||||
|
@ -305,7 +305,7 @@ static void mesh_pts_dump_mesh_options(void){
|
||||
|
||||
static void mesh_unprovisioned_beacon_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
if (packet_type != MESH_BEACON_PACKET) return;
|
||||
uint8_t device_uuid[16];
|
||||
static uint8_t device_uuid[16];
|
||||
uint16_t oob;
|
||||
memcpy(device_uuid, &packet[1], 16);
|
||||
oob = big_endian_read_16(packet, 17);
|
||||
|
Loading…
x
Reference in New Issue
Block a user