From 5efb68e45ebe737e4d9232783621f60106c54b4e Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Mon, 10 Apr 2017 01:41:36 +0200 Subject: [PATCH] iota used on the second line of const block starts from 1, not from 0... --- usb/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb/constants.go b/usb/constants.go index a71a9fd..4ff0ef2 100644 --- a/usb/constants.go +++ b/usb/constants.go @@ -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{