From a755b53768a3f9e5fd407979f65ee599890bb0c5 Mon Sep 17 00:00:00 2001 From: Eric Wild Date: Tue, 27 Jul 2021 17:09:03 +0200 Subject: [PATCH] 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 --- host/src/simtrace2-cardem-pcsc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/src/simtrace2-cardem-pcsc.c b/host/src/simtrace2-cardem-pcsc.c index d43e7f2a..8e143ba5 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: