mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 00:40:38 +00:00
mesh: fix mesh_provisioning_service_emit_link_close
This commit is contained in:
parent
c02404a533
commit
19974f17e1
@ -86,9 +86,9 @@ static void mesh_provisioning_service_emit_link_open(hci_con_handle_t con_handle
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void mesh_provisioning_service_emit_link_close(hci_con_handle_t con_handle, uint8_t reason){
|
static void mesh_provisioning_service_emit_link_close(hci_con_handle_t con_handle, uint8_t reason){
|
||||||
uint8_t event[5] = { HCI_EVENT_MESH_META, 3, MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED};
|
uint8_t event[6] = { HCI_EVENT_MESH_META, 3, MESH_SUBEVENT_PB_TRANSPORT_LINK_CLOSED};
|
||||||
little_endian_store_16(event, 3, con_handle);
|
little_endian_store_16(event, 3, con_handle);
|
||||||
event[4] = reason;
|
event[5] = reason;
|
||||||
mesh_provisioning_service_packet_handler(HCI_EVENT_PACKET, 0, event, sizeof(event));
|
mesh_provisioning_service_packet_handler(HCI_EVENT_PACKET, 0, event, sizeof(event));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user