mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
gatt_client: avoid shadowing local variable
This commit is contained in:
parent
cbba69d54e
commit
109c2548f0
@ -1366,6 +1366,7 @@ static bool gatt_client_run_for_gatt_client(gatt_client_t * gatt_client){
|
|||||||
|
|
||||||
static void gatt_client_run(void){
|
static void gatt_client_run(void){
|
||||||
btstack_linked_item_t *it;
|
btstack_linked_item_t *it;
|
||||||
|
bool packet_sent;
|
||||||
#ifdef ENABLE_GATT_OVER_EATT
|
#ifdef ENABLE_GATT_OVER_EATT
|
||||||
btstack_linked_list_iterator_t it_eatt;
|
btstack_linked_list_iterator_t it_eatt;
|
||||||
#endif
|
#endif
|
||||||
@ -1388,7 +1389,7 @@ static void gatt_client_run(void){
|
|||||||
att_dispatch_client_request_can_send_now_event(gatt_client->con_handle);
|
att_dispatch_client_request_can_send_now_event(gatt_client->con_handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool packet_sent = gatt_client_run_for_gatt_client(gatt_client);
|
packet_sent = gatt_client_run_for_gatt_client(gatt_client);
|
||||||
if (packet_sent){
|
if (packet_sent){
|
||||||
// request new permission
|
// request new permission
|
||||||
att_dispatch_client_request_can_send_now_event(gatt_client->con_handle);
|
att_dispatch_client_request_can_send_now_event(gatt_client->con_handle);
|
||||||
@ -1411,7 +1412,7 @@ static void gatt_client_run(void){
|
|||||||
l2cap_request_can_send_now_event(gatt_client->l2cap_cid);
|
l2cap_request_can_send_now_event(gatt_client->l2cap_cid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool packet_sent = gatt_client_run_for_gatt_client(gatt_client);
|
packet_sent = gatt_client_run_for_gatt_client(gatt_client);
|
||||||
if (packet_sent){
|
if (packet_sent){
|
||||||
// request new permission
|
// request new permission
|
||||||
att_dispatch_client_request_can_send_now_event(gatt_client->con_handle);
|
att_dispatch_client_request_can_send_now_event(gatt_client->con_handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user