mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
fix compile
This commit is contained in:
parent
4d766027c1
commit
b1b297962f
@ -1251,13 +1251,13 @@ le_command_status_t gatt_client_write_long_characteristic_descriptor(gatt_client
|
||||
}
|
||||
|
||||
// used by daemon
|
||||
void gatt_client_disconnect_connection(connection_t * connection){
|
||||
void gatt_client_disconnect_connection(void * connection){
|
||||
if (!connection) return;
|
||||
linked_item_t *it;
|
||||
for (it = (linked_item_t *) gatt_client_connections; it ; it = it->next){
|
||||
gatt_client_t * client = (gatt_client_t *) it;
|
||||
if (client->context == connection){
|
||||
gap_le_disconnect(client->handle);
|
||||
gap_disconnect(client->handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ void gatt_client_register_handler(void (*le_callback)(le_event_t * event));
|
||||
void gatt_client_start(gatt_client_t *context, uint16_t handle);
|
||||
void gatt_client_stop(gatt_client_t *context);
|
||||
gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle);
|
||||
void gatt_client_disconnect_connection(connection_t * connection);
|
||||
void gatt_client_disconnect_connection(void * connection);
|
||||
|
||||
// next command is used with daemon
|
||||
int gatt_client_is_ready(gatt_client_t *context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user