enable BLE in configure for daemon

This commit is contained in:
matthias.ringwald 2014-06-03 20:56:58 +00:00
parent 910bd8e0ac
commit 87a0f31a89
3 changed files with 5 additions and 2 deletions

View File

@ -269,6 +269,7 @@ fi
echo "#define HAVE_TIME" >> btstack-config.h
echo "#define HAVE_MALLOC" >> btstack-config.h
echo "#define HAVE_BZERO" >> btstack-config.h
echo "#define HAVE_BLE" >> btstack-config.h
echo "#define ENABLE_LOG_INFO " >> btstack-config.h
echo "#define ENABLE_LOG_ERROR" >> btstack-config.h
echo "#define HCI_ACL_PAYLOAD_SIZE 1021" >> btstack-config.h

View File

@ -32,7 +32,10 @@ BTdaemon_SOURCES = $(libBTstack_SOURCES) \
sdp_parser.c \
sdp_query_rfcomm.c \
sdp_query_util.c \
$(springboard_access_sources)
$(springboard_access_sources) \
../ble/att_dispatch.c \
../ble/gatt_client.c \
# use $(CC) for Objective-C files
.m.o:

View File

@ -1096,7 +1096,6 @@ static void handle_gatt_client_event(le_event_t * le_event){
gatt_complete_event_t * complete_event = (gatt_complete_event_t *) le_event;
#if defined(HAVE_MALLOC)
uint16_t data_length;
uint8_t * data;
gatt_client_helper_t * gatt_client_helper;
uint8_t gatt_chunk = 0;