Skip to content

Commit 6608091

Browse files
jcbudacmaglie
authored andcommitted
HID class fixes
1 parent ff8bc89 commit 6608091

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cores/arduino/USB/HID.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ bool HID_Setup(Setup& setup)
190190
if (HID_GET_IDLE == r)
191191
{
192192
USBDevice.armSend(0, &_hid_idle, 1);
193-
// RAM buffer is full, we can send data (IN)
194-
USB->DEVICE.DeviceEndpoint[0].EPSTATUSSET.bit.BK1RDY = 1;
195193
return true;
196194
}
197195
}
@@ -207,7 +205,7 @@ bool HID_Setup(Setup& setup)
207205
if (HID_SET_IDLE == r)
208206
{
209207
_hid_idle = setup.wValueH;
210-
return true;
208+
return false;
211209
}
212210
}
213211
return false;

cores/arduino/USB/USBCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ bool USBDeviceClass::handleClassInterfaceSetup(Setup& setup)
361361
#if defined(HID_ENABLED)
362362
if (HID_INTERFACE == i)
363363
{
364-
if (HID_Setup(setup) == true) {
364+
if (HID_Setup(setup) == false) {
365365
sendZlp(0);
366366
}
367367
return true;

0 commit comments

Comments
 (0)