return BTSTACK_ACL_BUFFERS_FULL instead or -1

This commit is contained in:
matthias.ringwald 2011-06-18 10:57:37 +00:00
parent 9025188b5c
commit 5932f1b489

View File

@ -215,7 +215,7 @@ int hci_ready_to_send(hci_con_handle_t handle){
int hci_send_acl_packet(uint8_t *packet, int size){
// check for free places on BT module
if (!hci_number_free_acl_slots()) return -1;
if (!hci_number_free_acl_slots()) return BTSTACK_ACL_BUFFERS_FULL;
hci_con_handle_t con_handle = READ_ACL_CONNECTION_HANDLE(packet);
hci_connection_t *connection = connection_for_handle( con_handle);