mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 09:40:00 +00:00
fix compile
This commit is contained in:
parent
616edd56bc
commit
472a574229
@ -48,7 +48,7 @@
|
|||||||
#include "gap.h"
|
#include "gap.h"
|
||||||
|
|
||||||
#ifdef HAVE_BLE
|
#ifdef HAVE_BLE
|
||||||
#include "ble/gap_le.h"
|
#include "gap.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
@ -3062,7 +3062,7 @@ uint8_t le_central_connect(bd_addr_t addr, bd_addr_type_t addr_type){
|
|||||||
// notify client that alloc failed
|
// notify client that alloc failed
|
||||||
hci_emit_le_connection_complete(addr_type, addr, 0, BTSTACK_MEMORY_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");
|
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;
|
conn->state = SEND_CREATE_CONNECTION;
|
||||||
log_info("le_central_connect: send create connection next");
|
log_info("le_central_connect: send create connection next");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user