diff --git a/port/max32630-fthr/example/template/Makefile b/port/max32630-fthr/example/template/Makefile index bf5d82b19..eadd4dd8a 100644 --- a/port/max32630-fthr/example/template/Makefile +++ b/port/max32630-fthr/example/template/Makefile @@ -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 \ diff --git a/port/msp432p401lp-cc256x/Makefile b/port/msp432p401lp-cc256x/Makefile index aedf4918e..dcb1b3081 100755 --- a/port/msp432p401lp-cc256x/Makefile +++ b/port/msp432p401lp-cc256x/Makefile @@ -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 \ diff --git a/port/stm32-f4discovery-cc256x/Makefile b/port/stm32-f4discovery-cc256x/Makefile index 9d39fa186..a9c3f72b8 100644 --- a/port/stm32-f4discovery-cc256x/Makefile +++ b/port/stm32-f4discovery-cc256x/Makefile @@ -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 \ diff --git a/src/classic/hid_host.c b/src/classic/hid_host.c index e53bd10fb..4a8c99d95 100644 --- a/src/classic/hid_host.c +++ b/src/classic/hid_host.c @@ -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;