From 32b1e327fb7caa0e012de50da7b4b5e0669ee8c0 Mon Sep 17 00:00:00 2001 From: Benedek Kupper Date: Fri, 25 Mar 2022 12:22:06 +0100 Subject: [PATCH] fix copy-paste error (#31) --- Class/HID/usbd_hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Class/HID/usbd_hid.c b/Class/HID/usbd_hid.c index 884c98c..fc2bbcc 100644 --- a/Class/HID/usbd_hid.c +++ b/Class/HID/usbd_hid.c @@ -292,7 +292,7 @@ static void hid_init(USBD_HID_IfHandleType *itf) #if (USBD_HID_OUT_SUPPORT == 1) if (itf->Config.OutEpNum != 0) { - mps = HID_APP(itf)->Report->Input.MaxSize; + mps = HID_APP(itf)->Report->Output.MaxSize; if (mps > mpsLimit) { mps = mpsLimit;