Skip to content

Commit 5e7d6e4

Browse files
committed
fix: still skip endpoint zero
1 parent 3a30fa6 commit 5e7d6e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/machine/usb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ func handleStandardSetup(setup usb.Setup) bool {
245245

246246
case usb.SET_CONFIGURATION:
247247
if setup.BmRequestType&usb.REQUEST_RECIPIENT == usb.REQUEST_DEVICE {
248-
for i := range inEndpoints {
248+
for i := 1; i < len(inEndpoints); i++ {
249249
initEndpoint(uint32(i), inEndpoints[i])
250250
}
251-
for i := range outEndpoints {
251+
for i := 1; i < len(outEndpoints); i++ {
252252
initEndpoint(uint32(i), outEndpoints[i])
253253
}
254254

0 commit comments

Comments
 (0)