diff --git a/platforms/arduino/btstack-config.h b/platforms/arduino/btstack-config.h index ac43a15d1..db1ad9aae 100644 --- a/platforms/arduino/btstack-config.h +++ b/platforms/arduino/btstack-config.h @@ -1,3 +1,6 @@ +#ifndef __BTSTACK_CONFIG +#define __BTSTACK_CONFIG + #define EMBEDDED // #define HAVE_INIT_SCRIPT @@ -27,4 +30,8 @@ #define MAX_NO_DB_MEM_DEVICE_NAMES 0 #define MAX_NO_DB_MEM_SERVICES 0 #define MAX_NO_GATT_CLIENTS 1 -#define MAX_ATT_DB_SIZE 200 \ No newline at end of file +#define MAX_ATT_DB_SIZE 200 +#define MAX_NO_HFP_CONNECTIONS 0 + + +#endif \ No newline at end of file diff --git a/platforms/msp-exp430f5438-cc2564b/btstack-config.h b/platforms/msp-exp430f5438-cc2564b/btstack-config.h index dedd58403..ad50bebe0 100644 --- a/platforms/msp-exp430f5438-cc2564b/btstack-config.h +++ b/platforms/msp-exp430f5438-cc2564b/btstack-config.h @@ -34,6 +34,7 @@ #define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2 #define MAX_NO_DB_MEM_DEVICE_NAMES 0 #define MAX_NO_DB_MEM_SERVICES 1 +#define MAX_NO_HFP_CONNECTIONS 0 #endif diff --git a/platforms/msp430f5229lp-cc2564b/btstack-config.h b/platforms/msp430f5229lp-cc2564b/btstack-config.h index dedd58403..ad50bebe0 100644 --- a/platforms/msp430f5229lp-cc2564b/btstack-config.h +++ b/platforms/msp430f5229lp-cc2564b/btstack-config.h @@ -34,6 +34,7 @@ #define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2 #define MAX_NO_DB_MEM_DEVICE_NAMES 0 #define MAX_NO_DB_MEM_SERVICES 1 +#define MAX_NO_HFP_CONNECTIONS 0 #endif diff --git a/src/hfp_hf.c b/src/hfp_hf.c index 8a299fc3b..894e590ff 100644 --- a/src/hfp_hf.c +++ b/src/hfp_hf.c @@ -65,7 +65,6 @@ static const char default_hfp_hf_service_name[] = "Hands-Free unit"; static void hfp_run(); -static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); void hfp_hf_create_service(uint8_t * service, int rfcomm_channel_nr, const char * name, uint16_t supported_features){ if (!name){ @@ -96,11 +95,5 @@ void hfp_hf_disconnect(){ static void hfp_run(void){ } -static void packet_handler (void * connection, uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ - // printf("packet_handler type %u, packet[0] %x\n", packet_type, packet[0]); - if (packet_type == RFCOMM_DATA_PACKET){ - } - if (packet_type != HCI_EVENT_PACKET) return; -}