From 5932f1b489442e16a69c827150b852e0ec486121 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sat, 18 Jun 2011 10:57:37 +0000 Subject: [PATCH] return BTSTACK_ACL_BUFFERS_FULL instead or -1 --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 99401b68b..d89982fbc 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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);