mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +00:00
machine/usb: change to not send before endpoint initialization
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user