From 472a57422994c5df63274fbac986354b7ac919fc Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 16 Nov 2015 23:03:46 +0100 Subject: [PATCH] fix compile --- src/hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hci.c b/src/hci.c index 3e13ee466..ad67139b8 100644 --- a/src/hci.c +++ b/src/hci.c @@ -48,7 +48,7 @@ #include "gap.h" #ifdef HAVE_BLE -#include "ble/gap_le.h" +#include "gap.h" #endif #include @@ -3062,7 +3062,7 @@ uint8_t le_central_connect(bd_addr_t addr, bd_addr_type_t addr_type){ // notify client that alloc failed hci_emit_le_connection_complete(addr_type, addr, 0, BTSTACK_MEMORY_ALLOC_FAILED); log_info("le_central_connect: failed to alloc hci_connection_t"); - return BLE_PERIPHERAL_NOT_CONNECTED; // don't sent packet to controller + return GATT_CLIENT_NOT_CONNECTED; // don't sent packet to controller } conn->state = SEND_CREATE_CONNECTION; log_info("le_central_connect: send create connection next");