mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 18:40:15 +03:00
pySim-shell: Unregister TS 102 222 commands during 'equip'
This avoids error messages about re-registering the same TS 102 222 commands during executing the 'equip' command. Change-Id: I3567247fe84e928e3ef404c07eff8250ef04dfe9
This commit is contained in:
@@ -204,7 +204,7 @@ class PysimApp(cmd2.Cmd):
|
|||||||
if self.rs:
|
if self.rs:
|
||||||
lchan = self.rs.lchan[0]
|
lchan = self.rs.lchan[0]
|
||||||
lchan.unregister_cmds(self)
|
lchan.unregister_cmds(self)
|
||||||
for cmds in [Iso7816Commands, PySimCommands]:
|
for cmds in [Iso7816Commands, Ts102222Commands, PySimCommands]:
|
||||||
cmd_set = self.find_commandsets(cmds)
|
cmd_set = self.find_commandsets(cmds)
|
||||||
if cmd_set:
|
if cmd_set:
|
||||||
self.unregister_command_set(cmd_set[0])
|
self.unregister_command_set(cmd_set[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user