summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-12 20:04:19 +0700
committerhathach <[email protected]>2021-05-18 12:58:24 +0700
commita5cd81a2266541c14dfeb2617b2a826296aab688 (patch)
treea7d6979e04498c6ed066822bc2d62f657a076c0c /examples/host
parentbe165a67134d08f7c32386de041f1a2665e696be (diff)
correct hid host mount/unmount callback
rename HOST_CLASS_HID to CFG_TUH_HID
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c
index 5543e9efb..ccc50bbf2 100644
--- a/examples/host/cdc_msc_hid/src/main.c
+++ b/examples/host/cdc_msc_hid/src/main.c
@@ -154,7 +154,7 @@ static inline void process_kbd_report(hid_keyboard_report_t const *p_new_report)
prev_report = *p_new_report;
}
-void tuh_hid_mounted_cb(uint8_t dev_addr)
+void tuh_hid_mounted_cb(uint8_t dev_addr, uint8_t instance)
{
// application set-up
printf("A Keyboard device (address %d) is mounted\r\n", dev_addr);
@@ -162,7 +162,7 @@ void tuh_hid_mounted_cb(uint8_t dev_addr)
tuh_hid_keyboard_get_report(dev_addr, &usb_keyboard_report);
}
-void tuh_hid_unmounted_cb(uint8_t dev_addr)
+void tuh_hid_unmounted_cb(uint8_t dev_addr, uint8_t instance)
{
// application tear-down
printf("A Keyboard device (address %d) is unmounted\r\n", dev_addr);