summaryrefslogtreecommitdiff
path: root/src/class/hid
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-23 14:11:12 +0700
committerhathach <[email protected]>2021-05-23 14:11:12 +0700
commit3654d96e07f63e041f750aafd125c2c8bca27aa5 (patch)
tree1d86cbeab8f242f19950d793e77b28bf4e2a32bd /src/class/hid
parent8cffe4897eb114d65ff60685e111ff3e03d0fd74 (diff)
only invoke tuh_msc_umount_cb() if needed
Diffstat (limited to 'src/class/hid')
-rw-r--r--src/class/hid/hid_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c
index e3ae5a155..1bc86e4ad 100644
--- a/src/class/hid/hid_host.c
+++ b/src/class/hid/hid_host.c
@@ -241,7 +241,7 @@ void hidh_close(uint8_t dev_addr)
hidh_device_t* hid_dev = get_dev(dev_addr);
if (tuh_hid_umount_cb)
{
- for ( uint8_t inst = 0; inst < hid_dev->inst_count; inst++) tuh_hid_umount_cb(dev_addr, inst);
+ for ( uint8_t inst = 0; inst < hid_dev->inst_count; inst++ ) tuh_hid_umount_cb(dev_addr, inst);
}
tu_memclr(hid_dev, sizeof(hidh_device_t));