mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 09:35:42 +00:00
fix ad report data
This commit is contained in:
parent
b1b297962f
commit
88ed79cf89
@ -547,7 +547,7 @@ static void le_handle_advertisement_report(uint8_t *packet, int size){
|
|||||||
pos += 6;
|
pos += 6;
|
||||||
event[pos++] = packet[4+num_reports*9+total_data_length + i];
|
event[pos++] = packet[4+num_reports*9+total_data_length + i];
|
||||||
event[pos++] = data_length;
|
event[pos++] = data_length;
|
||||||
memcpy(&packet[4+num_reports*9+data_offset], &event[pos], data_length);
|
memcpy(&event[pos], &packet[4+num_reports*9+data_offset], data_length);
|
||||||
data_offset += data_length;
|
data_offset += data_length;
|
||||||
pos += data_length;
|
pos += data_length;
|
||||||
hci_stack->packet_handler(HCI_EVENT_PACKET, event, sizeof(event));
|
hci_stack->packet_handler(HCI_EVENT_PACKET, event, sizeof(event));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user