mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user