fix warnings / add hid_host.c to embedded targets

This commit is contained in:
Matthias Ringwald 2021-02-09 19:22:43 +01:00
parent cf4c9541a9
commit 1ddeadfcb2
4 changed files with 6 additions and 2 deletions

View File

@ -167,6 +167,8 @@ COMMON = \
CLASSIC = \
btstack_link_key_db_tlv.o \
hid_device.o \
hid_host.o \
rfcomm.o \
sdp_util.o \
spp_server.o \

View File

@ -138,6 +138,7 @@ ${BTSTACK_ROOT}/src/classic/hfp_gsm_model.c \
${BTSTACK_ROOT}/src/classic/hfp_hf.c \
${BTSTACK_ROOT}/src/classic/hfp_msbc.c \
${BTSTACK_ROOT}/src/classic/hid_device.c \
${BTSTACK_ROOT}/src/classic/hid_host.c \
${BTSTACK_ROOT}/src/classic/hsp_ag.c \
${BTSTACK_ROOT}/src/classic/hsp_hs.c \
${BTSTACK_ROOT}/src/classic/obex_iterator.c \

View File

@ -103,6 +103,7 @@ ${BTSTACK_ROOT}/src/classic/hfp_gsm_model.c \
${BTSTACK_ROOT}/src/classic/hfp_hf.c \
${BTSTACK_ROOT}/src/classic/hfp_msbc.c \
${BTSTACK_ROOT}/src/classic/hid_device.c \
${BTSTACK_ROOT}/src/classic/hid_host.c \
${BTSTACK_ROOT}/src/classic/hsp_ag.c \
${BTSTACK_ROOT}/src/classic/hsp_hs.c \
${BTSTACK_ROOT}/src/classic/obex_iterator.c \

View File

@ -398,7 +398,7 @@ static void hid_host_handle_sdp_client_query_result(uint8_t packet_type, uint16_
if (!des_iterator_has_more(&prot_it)) continue;
des_iterator_next(&prot_it);
de_element_get_uint16(des_iterator_get_element(&prot_it), &connection->control_psm);
log_info("HID Control PSM: 0x%04x", (int) &connection->control_psm);
log_info("HID Control PSM: 0x%04x", connection->control_psm);
break;
default:
break;
@ -421,7 +421,7 @@ static void hid_host_handle_sdp_client_query_result(uint8_t packet_type, uint16_
if (!des_iterator_has_more(&prot_it)) continue;
des_iterator_next(&prot_it);
de_element_get_uint16(des_iterator_get_element(&prot_it), &connection->interrupt_psm);
log_info("HID Interrupt PSM: 0x%04x", (int) &connection->interrupt_psm);
log_info("HID Interrupt PSM: 0x%04x", connection->interrupt_psm);
break;
default:
break;