machine/usb: change to not send before endpoint initialization

This commit is contained in:
sago35
2023-01-08 11:59:26 +09:00
committed by Ron Evans
parent a7ff2731b9
commit 5f3534fe72
5 changed files with 33 additions and 21 deletions
+3 -1
View File
@@ -10,7 +10,8 @@ import (
)
type USBDevice struct {
initcomplete bool
initcomplete bool
InitEndpointComplete bool
}
var (
@@ -215,6 +216,7 @@ func handleStandardSetup(setup usb.Setup) bool {
}
usbConfiguration = setup.WValueL
USBDev.InitEndpointComplete = true
SendZlp()
return true