Skip to content
Snippets Groups Projects
Commit 66080917 authored by Jean-Christophe BUDA's avatar Jean-Christophe BUDA Committed by Cristian Maglie
Browse files

HID class fixes

parent ff8bc899
No related branches found
No related tags found
No related merge requests found
......@@ -190,8 +190,6 @@ bool HID_Setup(Setup& setup)
if (HID_GET_IDLE == r)
{
USBDevice.armSend(0, &_hid_idle, 1);
// RAM buffer is full, we can send data (IN)
USB->DEVICE.DeviceEndpoint[0].EPSTATUSSET.bit.BK1RDY = 1;
return true;
}
}
......@@ -207,7 +205,7 @@ bool HID_Setup(Setup& setup)
if (HID_SET_IDLE == r)
{
_hid_idle = setup.wValueH;
return true;
return false;
}
}
return false;
......
......@@ -361,7 +361,7 @@ bool USBDeviceClass::handleClassInterfaceSetup(Setup& setup)
#if defined(HID_ENABLED)
if (HID_INTERFACE == i)
{
if (HID_Setup(setup) == true) {
if (HID_Setup(setup) == false) {
sendZlp(0);
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment