machine/usb/descriptor: rename and export Append() to make it easier to create new descriptors in user code

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-04-28 21:36:18 +02:00
committed by Ron Evans
parent d8ee520bdc
commit 90935703e6
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func (d *Descriptor) Configure(idVendor, idProduct uint16) {
conf.TotalLength(uint16(len(d.Configuration)))
}
func appendSlices[T any](slices [][]T) []T {
func Append[T any](slices [][]T) []T {
var size, pos int
for _, s := range slices {