File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,6 @@ bool HID_Setup(Setup& setup)
190
190
if (HID_GET_IDLE == r)
191
191
{
192
192
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 ;
195
193
return true ;
196
194
}
197
195
}
@@ -207,7 +205,7 @@ bool HID_Setup(Setup& setup)
207
205
if (HID_SET_IDLE == r)
208
206
{
209
207
_hid_idle = setup.wValueH ;
210
- return true ;
208
+ return false ;
211
209
}
212
210
}
213
211
return false ;
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ bool USBDeviceClass::handleClassInterfaceSetup(Setup& setup)
361
361
#if defined(HID_ENABLED)
362
362
if (HID_INTERFACE == i)
363
363
{
364
- if (HID_Setup (setup) == true ) {
364
+ if (HID_Setup (setup) == false ) {
365
365
sendZlp (0 );
366
366
}
367
367
return true ;
You can’t perform that action at this time.
0 commit comments