mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 12:40:42 +00:00
gatt-service/scan_parameters: fix event type
This commit is contained in:
parent
c7b29a7da3
commit
d4ac06eb78
@ -133,7 +133,7 @@ static void scan_parameters_service_emit_connection_established(scan_parameters_
|
||||
little_endian_store_16(event, pos, client->cid);
|
||||
pos += 2;
|
||||
event[pos++] = status;
|
||||
(*client->client_handler)(HCI_EVENT_PACKET, 0, event, sizeof(event));
|
||||
(*client->client_handler)(HCI_EVENT_GATTSERVICE_META, 0, event, sizeof(event));
|
||||
}
|
||||
|
||||
static void handle_notification_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size) {
|
||||
|
@ -86,7 +86,7 @@ static void scan_parameters_service_emit_state(hci_con_handle_t con_handle, uint
|
||||
little_endian_store_16(event, pos, min_scan_window);
|
||||
pos += 2;
|
||||
|
||||
(*scan_parameters_packet_handler)(HCI_EVENT_PACKET, 0, event, pos);
|
||||
(*scan_parameters_packet_handler)(HCI_EVENT_GATTSERVICE_META, 0, event, pos);
|
||||
}
|
||||
|
||||
static uint16_t scan_parameters_service_read_callback(hci_con_handle_t con_handle, uint16_t attribute_handle, uint16_t offset, uint8_t * buffer, uint16_t buffer_size){
|
||||
|
Loading…
x
Reference in New Issue
Block a user