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
This commit is contained in:
Philipp Maier
2024-11-27 12:15:39 +01:00
parent 45d1b43393
commit 9f9e931378

View File

@@ -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 # When a card object and a runtime state is present, (re)equip pySim-shell with everything that is
# needed to operate on cards. # needed to operate on cards.
if self.card and self.rs: if self.card and self.rs:
self.rs.reset()
self.lchan = self.rs.lchan[0] self.lchan = self.rs.lchan[0]
self._onchange_conserve_write( self._onchange_conserve_write(
'conserve_write', False, self.conserve_write) 'conserve_write', False, self.conserve_write)