mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-28 05:37:15 +00:00
fix hid close not clear data
This commit is contained in:
parent
32743f112c
commit
2012a0d369
@ -410,8 +410,7 @@ void hidh_close(uint8_t daddr) {
|
|||||||
if (p_hid->daddr == daddr) {
|
if (p_hid->daddr == daddr) {
|
||||||
TU_LOG_DRV(" HIDh close addr = %u index = %u\r\n", daddr, i);
|
TU_LOG_DRV(" HIDh close addr = %u index = %u\r\n", daddr, i);
|
||||||
if (tuh_hid_umount_cb) tuh_hid_umount_cb(daddr, i);
|
if (tuh_hid_umount_cb) tuh_hid_umount_cb(daddr, i);
|
||||||
p_hid->daddr = 0;
|
tu_memclr(p_hid, sizeof(hidh_interface_t));
|
||||||
p_hid->mounted = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user