simtrace.py: Sleep a sec after changing the config
diff --git a/usb_application/simtrace.py b/usb_application/simtrace.py
index 08d2c84..1cb9c7c 100755
--- a/usb_application/simtrace.py
+++ b/usb_application/simtrace.py
@@ -14,6 +14,7 @@
import os
import random
import re
+import time
cmd1 = {0x00, 0x10, 0x00, 0x00}
cmd2 = {0x00, 0x20, 0x00, 0x00, 0x02}
@@ -71,6 +72,8 @@
#FIXME: Change means to find devices
dev = find_dev()
dev.set_configuration(args.conf)
+ # Give pcsclite time to find the device
+ time.sleep(1)
if args.read_bin is True:
ccid.pySim_read()