diff options
| author | hathach <[email protected]> | 2024-03-31 15:48:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-03-31 15:48:26 +0700 |
| commit | 2012a0d369badbc671ac061184ddc3f5961e985e (patch) | |
| tree | 096912719c4d2d8a7413daf680f34146199b2834 /src/class | |
| parent | 32743f112cb2d53bb59ae073a72e7b7dcc93cb6a (diff) | |
fix hid close not clear data
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c index efc54656e..621fb2a55 100644 --- a/src/class/hid/hid_host.c +++ b/src/class/hid/hid_host.c @@ -410,8 +410,7 @@ void hidh_close(uint8_t daddr) { if (p_hid->daddr == daddr) { TU_LOG_DRV(" HIDh close addr = %u index = %u\r\n", daddr, i); if (tuh_hid_umount_cb) tuh_hid_umount_cb(daddr, i); - p_hid->daddr = 0; - p_hid->mounted = false; + tu_memclr(p_hid, sizeof(hidh_interface_t)); } } } |
