simtrace.py: Find device without config change

The find_device() function was only called when the USB config was
altered. Now, it is called on every call of simtrace.py.
This commit is contained in:
Christina Quast
2015-06-19 13:49:45 +02:00
parent ca0ebfdbd6
commit 8271bd0145

View File

@@ -31,9 +31,9 @@ def main():
args = parser.parse_args()
print("args: ", args)
dev = find_dev()
if args.conf is not None:
dev = find_dev()
dev.set_configuration(args.conf)
# Give pcsclite time to find the device
time.sleep(1)