We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a30fa6 commit 5e7d6e4Copy full SHA for 5e7d6e4
src/machine/usb.go
@@ -245,10 +245,10 @@ func handleStandardSetup(setup usb.Setup) bool {
245
246
case usb.SET_CONFIGURATION:
247
if setup.BmRequestType&usb.REQUEST_RECIPIENT == usb.REQUEST_DEVICE {
248
- for i := range inEndpoints {
+ for i := 1; i < len(inEndpoints); i++ {
249
initEndpoint(uint32(i), inEndpoints[i])
250
}
251
- for i := range outEndpoints {
+ for i := 1; i < len(outEndpoints); i++ {
252
initEndpoint(uint32(i), outEndpoints[i])
253
254
0 commit comments