mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 01:08:32 +03:00
simtrace.py: Sleep a sec after changing the config
This commit is contained in:
@@ -14,6 +14,7 @@ import hashlib
|
|||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
|
import time
|
||||||
|
|
||||||
cmd1 = {0x00, 0x10, 0x00, 0x00}
|
cmd1 = {0x00, 0x10, 0x00, 0x00}
|
||||||
cmd2 = {0x00, 0x20, 0x00, 0x00, 0x02}
|
cmd2 = {0x00, 0x20, 0x00, 0x00, 0x02}
|
||||||
@@ -71,6 +72,8 @@ def main():
|
|||||||
#FIXME: Change means to find devices
|
#FIXME: Change means to find devices
|
||||||
dev = find_dev()
|
dev = find_dev()
|
||||||
dev.set_configuration(args.conf)
|
dev.set_configuration(args.conf)
|
||||||
|
# Give pcsclite time to find the device
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
if args.read_bin is True:
|
if args.read_bin is True:
|
||||||
ccid.pySim_read()
|
ccid.pySim_read()
|
||||||
|
|||||||
Reference in New Issue
Block a user