summaryrefslogtreecommitdiff
path: root/src/class/hid
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-09-04 01:35:32 +0700
committerhathach <[email protected]>2020-09-04 01:35:32 +0700
commita8e538efe7d11291e32e016fad5910ebaf9eac43 (patch)
tree15e3453593465f5879a75fee50e2dbb765d7c6a9 /src/class/hid
parent5fb3d439b3e415bae5edbc556ea20f7211ac4bb5 (diff)
clean up
Diffstat (limited to 'src/class/hid')
-rw-r--r--src/class/hid/hid_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c
index d2d1c0397..378278cc3 100644
--- a/src/class/hid/hid_host.c
+++ b/src/class/hid/hid_host.c
@@ -36,7 +36,7 @@
//--------------------------------------------------------------------+
typedef struct {
- uint8_t itf_numr;
+ uint8_t itf_num;
uint8_t ep_in;
uint8_t ep_out;
@@ -52,7 +52,7 @@ static inline bool hidh_interface_open(uint8_t rhport, uint8_t dev_addr, uint8_t
p_hid->ep_in = p_endpoint_desc->bEndpointAddress;
p_hid->report_size = p_endpoint_desc->wMaxPacketSize.size; // TODO get size from report descriptor
- p_hid->itf_numr = interface_number;
+ p_hid->itf_num = interface_number;
return true;
}