mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 01:08:32 +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()
|
args = parser.parse_args()
|
||||||
print("args: ", args)
|
print("args: ", args)
|
||||||
|
dev = find_dev()
|
||||||
|
|
||||||
if args.conf is not None:
|
if args.conf is not None:
|
||||||
dev = find_dev()
|
|
||||||
dev.set_configuration(args.conf)
|
dev.set_configuration(args.conf)
|
||||||
# Give pcsclite time to find the device
|
# Give pcsclite time to find the device
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user