diff options
Diffstat (limited to 'stack/gap/gap_ble.c')
-rw-r--r-- | stack/gap/gap_ble.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stack/gap/gap_ble.c b/stack/gap/gap_ble.c index 48f4723e1..d44577dc0 100644 --- a/stack/gap/gap_ble.c +++ b/stack/gap/gap_ble.c @@ -19,6 +19,7 @@ #if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE) +#include "bt_utils.h" #include <string.h> #include "gap_int.h" #include "gap_api.h" @@ -345,6 +346,7 @@ tGATT_STATUS gap_read_attr_value (UINT16 handle, tGATT_VALUE *p_value, BOOLEAN i tGATT_STATUS gap_proc_read (tGATTS_REQ_TYPE type, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp) { tGATT_STATUS status = GATT_NO_RESOURCES; + UNUSED(type); if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; @@ -381,6 +383,7 @@ UINT8 gap_proc_write_req( tGATTS_REQ_TYPE type, tGATT_WRITE_REQ *p_data) { tGAP_ATTR *p_db_attr = gap_cb.gatt_attr; UINT8 i; + UNUSED(type); for (i = 0; i < GAP_MAX_CHAR_NUM; i ++, p_db_attr ++) { @@ -613,6 +616,7 @@ static void gap_ble_c_connect_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_ { tGAP_CLCB *p_clcb = gap_find_clcb_by_bd_addr (bda); UINT16 cl_op_uuid; + UNUSED(gatt_if); GAP_TRACE_EVENT5 ("gap_ble_c_connect_cback: from %08x%04x connected:%d conn_id=%d reason = 0x%04x", (bda[0]<<24)+(bda[1]<<16)+(bda[2]<<8)+bda[3], |