mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-24 06:02:43 +00:00
pass empty buffer for ATT_TRANSACTION_MODE_EXECUTE in write callback
This commit is contained in:
parent
a72f4764de
commit
df8b2fa640
@ -777,6 +777,8 @@ static uint16_t handle_read_by_group_type_request2(att_connection_t * att_connec
|
|||||||
if (it.handle && it.handle < start_handle) continue;
|
if (it.handle && it.handle < start_handle) continue;
|
||||||
if (it.handle > end_handle) break; // (1)
|
if (it.handle > end_handle) break; // (1)
|
||||||
|
|
||||||
|
// printf("Handle 0x%04x\n", it.handle);
|
||||||
|
|
||||||
// close current tag, if within a group and a new service definition starts or we reach end of att db
|
// close current tag, if within a group and a new service definition starts or we reach end of att db
|
||||||
if (in_group &&
|
if (in_group &&
|
||||||
(it.handle == 0 || att_iterator_match_uuid16(&it, GATT_PRIMARY_SERVICE_UUID) || att_iterator_match_uuid16(&it, GATT_SECONDARY_SERVICE_UUID))){
|
(it.handle == 0 || att_iterator_match_uuid16(&it, GATT_PRIMARY_SERVICE_UUID) || att_iterator_match_uuid16(&it, GATT_SECONDARY_SERVICE_UUID))){
|
||||||
@ -953,7 +955,7 @@ static uint16_t handle_execute_write_request(att_connection_t * att_connection,
|
|||||||
att_prepare_write_reset();
|
att_prepare_write_reset();
|
||||||
return setup_error(response_buffer, request_type, handle, error_code);
|
return setup_error(response_buffer, request_type, handle, error_code);
|
||||||
}
|
}
|
||||||
(*att_write_callback)(0, ATT_TRANSACTION_MODE_EXECUTE, 0, request_buffer + 3, request_len - 3, NULL);
|
(*att_write_callback)(0, ATT_TRANSACTION_MODE_EXECUTE, 0, NULL, 0, NULL);
|
||||||
} else {
|
} else {
|
||||||
att_clear_transaction_queue();
|
att_clear_transaction_queue();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user