diff --git a/usb_application/simtrace.py b/usb_application/simtrace.py index 29379356..cf77e215 100755 --- a/usb_application/simtrace.py +++ b/usb_application/simtrace.py @@ -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)