aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2021-07-27 17:09:03 +0200
committerlaforge <laforge@osmocom.org>2021-08-02 09:23:19 +0000
commita755b53768a3f9e5fd407979f65ee599890bb0c5 (patch)
tree2dd1bb6f7fd4599a13ea6f4303ea9af1d51f5161
parent1ad205e68289c57c0754d97f671b949d1efa9098 (diff)
simtrace2-cardem: use local sim on exit
There is no obvious reason why the st should be stuck in cardem mode without a working running util on the host side since there is no state that is being kept, so switch back to using the local sim upon reset. Change-Id: Ib622af0027d40b4e8afbb0fa0d3689f0dbfcac92
-rw-r--r--host/src/simtrace2-cardem-pcsc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/src/simtrace2-cardem-pcsc.c b/host/src/simtrace2-cardem-pcsc.c
index d43e7f2..8e143ba 100644
--- a/host/src/simtrace2-cardem-pcsc.c
+++ b/host/src/simtrace2-cardem-pcsc.c
@@ -420,6 +420,7 @@ static void signal_handler(int signal)
switch (signal) {
case SIGINT:
osmo_st2_cardem_request_card_insert(ci, false);
+ osmo_st2_modem_sim_select_local(ci->slot);
exit(0);
break;
default: