From 892526ffd0f9e8f410e54b98f40b3522ccc4af52 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 6 Jun 2023 17:09:50 +0200 Subject: [PATCH] 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 --- pySim-shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim-shell.py b/pySim-shell.py index fc825ef4..d6d9a644 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -204,7 +204,7 @@ class PysimApp(cmd2.Cmd): if self.rs: lchan = self.rs.lchan[0] lchan.unregister_cmds(self) - for cmds in [Iso7816Commands, PySimCommands]: + for cmds in [Iso7816Commands, Ts102222Commands, PySimCommands]: cmd_set = self.find_commandsets(cmds) if cmd_set: self.unregister_command_set(cmd_set[0])