From 8271bd0145ad900342cc9bb3d45279eaf5b649d7 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Fri, 19 Jun 2015 13:49:45 +0200 Subject: [PATCH] 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. --- usb_application/simtrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)