correct hid host mount/unmount callback
rename HOST_CLASS_HID to CFG_TUH_HID
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user