Merge pull request #3359 from adafruit/endpoint-counting-debug-remove

Remove debugging print-out for endpoint checking.
This commit is contained in:
Jeff Epler 2020-08-31 06:44:26 -05:00 committed by GitHub
commit 8b2ae355ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,7 +382,6 @@ if args.max_ep != 0:
for interface in interfaces:
for subdescriptor in interface.subdescriptors:
endpoint_address = getattr(subdescriptor, 'bEndpointAddress', 0) & 0x7f
print("Endpoint %d - vs max_ep %d" % (endpoint_address, args.max_ep))
if endpoint_address >= args.max_ep:
raise ValueError("Endpoint address %d of %s must be less than %d" % (endpoint_address & 0x7f, interface.description, args.max_ep))
else: