Remove debugging print-out for endpoint checking.

This commit is contained in:
Dan Halbert 2020-08-30 23:14:50 -04:00 committed by GitHub
parent 5084d2b56b
commit 07e2fc721a
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 interface in interfaces:
for subdescriptor in interface.subdescriptors: for subdescriptor in interface.subdescriptors:
endpoint_address = getattr(subdescriptor, 'bEndpointAddress', 0) & 0x7f 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: 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)) raise ValueError("Endpoint address %d of %s must be less than %d" % (endpoint_address & 0x7f, interface.description, args.max_ep))
else: else: