From 7b3d4b805c9afc82a3ff50f95744a8df97fc3cbe Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 8 Jun 2024 20:12:54 +0200 Subject: [PATCH] pySim/cat: Fix "Decode the "Type of Comand" from numeric value to a string" This fixes a bug introduced in Change-Id: I833ec02bf281fe49de2be326018e91f521de52c0 Change-Id: I8b466c123173a5be335df3e1d77ef1c5f717a7d9 --- pySim/cat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/cat.py b/pySim/cat.py index 875806c3..bfd22b4e 100644 --- a/pySim/cat.py +++ b/pySim/cat.py @@ -1191,7 +1191,7 @@ class ProactiveCommand(TLV_IE_Collection, pcmd.from_tlv(binary) cmd_details = pcmd.find_cmd_details() # then do a second decode stage for the specific - cmd_type = cmd_details.decoded['type_of_command'] + cmd_type = TypeOfCommand.encmapping[cmd_details.decoded['type_of_command']] if cmd_type in self.members_by_tag: cls = self.members_by_tag[cmd_type] inst = cls()