diff options
author | sago35 <[email protected]> | 2023-01-07 11:28:15 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-01-07 17:57:19 +0100 |
commit | 70c4e1cf965290e289583553441ce1b1009ca30b (patch) | |
tree | 51fe6d3212639b4b37d227296290476aa85b6c26 | |
parent | 9fd0567fb5d2ffbf217e3417f77dce479509f92e (diff) | |
download | tinygo-70c4e1cf965290e289583553441ce1b1009ca30b.tar.gz tinygo-70c4e1cf965290e289583553441ce1b1009ca30b.zip |
machine/usb: improve buffer size definition
-rw-r--r-- | src/machine/usb.go | 4 |
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 |