iota used on the second line of const block starts from 1, not from 0...

This commit is contained in:
Sebastian Zagrodzki
2017-04-10 01:41:36 +02:00
parent 5150242633
commit 5efb68e45e

View File

@@ -179,13 +179,13 @@ const (
// Note: USB3.0 defines usage type for both isochronous and interrupt
// endpoints, with the same constants representing different usage types.
// UsageType constants do not correspond to bmAttribute values.
usageTypeMask = 0x30
UsageTypeUndefined UsageType = iota
IsoUsageTypeData
IsoUsageTypeFeedback
IsoUsageTypeImplicit
InterruptUsageTypePeriodic
InterruptUsageTypeNotification
usageTypeMask = 0x30
)
var usageTypeDescription = map[UsageType]string{