File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 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)
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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments