aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsago35 <[email protected]>2023-01-07 11:28:15 +0900
committerRon Evans <[email protected]>2023-01-07 17:57:19 +0100
commit70c4e1cf965290e289583553441ce1b1009ca30b (patch)
tree51fe6d3212639b4b37d227296290476aa85b6c26
parent9fd0567fb5d2ffbf217e3417f77dce479509f92e (diff)
downloadtinygo-70c4e1cf965290e289583553441ce1b1009ca30b.tar.gz
tinygo-70c4e1cf965290e289583553441ce1b1009ca30b.zip
machine/usb: improve buffer size definition
-rw-r--r--src/machine/usb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/usb.go b/src/machine/usb.go
index c5820dc6a..f49ee119e 100644
--- a/src/machine/usb.go
+++ b/src/machine/usb.go
@@ -66,10 +66,10 @@ var (
var udd_ep_control_cache_buffer [256]uint8
//go:align 4
-var udd_ep_in_cache_buffer [7][64]uint8
+var udd_ep_in_cache_buffer [usb.NumberOfEndpoints][64]uint8
//go:align 4
-var udd_ep_out_cache_buffer [7][64]uint8
+var udd_ep_out_cache_buffer [usb.NumberOfEndpoints][64]uint8
// usb_trans_buffer max size is 255 since that is max size
// for a descriptor (bLength is 1 byte), and the biggest use