mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
clear gatt_client_t before use
This commit is contained in:
parent
e4a65ce94f
commit
c7fdde1ffc
@ -184,6 +184,7 @@ static gatt_client_t * provide_context_for_conn_handle(uint16_t con_handle){
|
||||
context = btstack_memory_gatt_client_get();
|
||||
if (!context) return NULL;
|
||||
// init state
|
||||
memset(context, 0, sizeof(gatt_client_t));
|
||||
context->handle = con_handle;
|
||||
context->mtu = ATT_DEFAULT_MTU;
|
||||
context->mtu_state = SEND_MTU_EXCHANGE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user