From 9f9e931378e00a3395af0cf8a4ae7f6992b15e37 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 27 Nov 2024 12:15:39 +0100 Subject: [PATCH] pySim-shell: reset card in method equip When the equip method is running, all kinds of states in pySim-shell are reset. To be sure that the card state is also reset (normally this is the case because usually init_card is called before equip), we should send an explicit reset to the card as well. Related: OS#6640 Change-Id: I622a2df2c9184841f72abd18483bfbfd00b2f464 --- pySim-shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pySim-shell.py b/pySim-shell.py index 08f00f9c..f2b3ad27 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -155,6 +155,7 @@ Online manual available at https://downloads.osmocom.org/docs/pysim/master/html/ # When a card object and a runtime state is present, (re)equip pySim-shell with everything that is # needed to operate on cards. if self.card and self.rs: + self.rs.reset() self.lchan = self.rs.lchan[0] self._onchange_conserve_write( 'conserve_write', False, self.conserve_write)