From 31eaaa99f81bff0323f6785df684f797ded7d1f5 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 8 Apr 2019 22:09:59 +0200 Subject: [PATCH] example/hog demos: use correct event getter to access con handle --- example/hog_keyboard_demo.c | 2 +- example/hog_mouse_demo.c | 4 ++-- test/pts/hog_demo_test.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/hog_keyboard_demo.c b/example/hog_keyboard_demo.c index 3e108f970..45cd26664 100644 --- a/example/hog_keyboard_demo.c +++ b/example/hog_keyboard_demo.c @@ -422,7 +422,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack #endif break; case HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE: - con_handle = hids_subevent_input_report_enable_get_con_handle(packet); + con_handle = hids_subevent_boot_keyboard_input_report_enable_get_con_handle(packet); printf("Boot Keyboard Characteristic Subscribed %u\n", hids_subevent_boot_keyboard_input_report_enable_get_enable(packet)); break; case HIDS_SUBEVENT_PROTOCOL_MODE: diff --git a/example/hog_mouse_demo.c b/example/hog_mouse_demo.c index 5dbeab672..00aa3059c 100644 --- a/example/hog_mouse_demo.c +++ b/example/hog_mouse_demo.c @@ -358,11 +358,11 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack break; case HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE: - con_handle = hids_subevent_input_report_enable_get_con_handle(packet); + con_handle = hids_subevent_boot_keyboard_input_report_enable_get_con_handle(packet); printf("Boot Keyboard Characteristic Subscribed %u\n", hids_subevent_boot_keyboard_input_report_enable_get_enable(packet)); break; case HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE: - con_handle = hids_subevent_input_report_enable_get_con_handle(packet); + con_handle = hids_subevent_boot_mouse_input_report_enable_get_con_handle(packet); printf("Boot Mouse Characteristic Subscribed %u\n", hids_subevent_boot_mouse_input_report_enable_get_enable(packet)); break; case HIDS_SUBEVENT_PROTOCOL_MODE: diff --git a/test/pts/hog_demo_test.c b/test/pts/hog_demo_test.c index 8a9e65d82..f8eb800f5 100644 --- a/test/pts/hog_demo_test.c +++ b/test/pts/hog_demo_test.c @@ -516,7 +516,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack case HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE: report_type = HIDS_BOOT_KEYBOARD_INPUT_REPORT; - con_handle = hids_subevent_input_report_enable_get_con_handle(packet); + con_handle = hids_subevent_boot_keyboard_input_report_enable_get_con_handle(packet); printf("Boot Keyboard Characteristic Subscribed %u\n", hids_subevent_boot_keyboard_input_report_enable_get_enable(packet)); break; case HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE: