att_dispatch: trigger another can send now on client request

This commit is contained in:
Matthias Ringwald 2018-03-22 15:20:26 +01:00
parent 7fd7aa6f98
commit bba111e7fb

View File

@ -90,7 +90,7 @@ static void att_packet_handler(uint8_t packet_type, uint16_t handle, uint8_t *pa
// check if more can send now events are needed
if (!can_send_now_pending){
for (i = 0; i < ATT_MAX; i++){
if (subscriptions[index].packet_handler && subscriptions[index].waiting_for_can_send){
if (subscriptions[i].packet_handler && subscriptions[i].waiting_for_can_send){
can_send_now_pending = 1;
// note: con_handle is not used, so we can pass in anything
l2cap_request_can_send_fix_channel_now_event(0, L2CAP_CID_ATTRIBUTE_PROTOCOL);