Skip to content

Commit

Permalink
fix hid close not clear data
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Mar 31, 2024
1 parent 32743f1 commit 2012a0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/class/hid/hid_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit 2012a0d

Please sign in to comment.