From be0bb4ac58be1739c0bbb45ab0f3150b75a8ce28 Mon Sep 17 00:00:00 2001 From: James Jr Nkhata <45241692+jamesjrnkhata@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:44:31 +0100 Subject: [PATCH] Update dc09_msg.py Typo when using the variable passed to the method. --- dc09_spt/msg/dc09_msg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dc09_spt/msg/dc09_msg.py b/dc09_spt/msg/dc09_msg.py index 08b9462..2f923ce 100644 --- a/dc09_spt/msg/dc09_msg.py +++ b/dc09_spt/msg/dc09_msg.py @@ -144,7 +144,7 @@ def dc09block(self, msg_nr=0, dc09type="NULL", msg="]"): if self.key is None: ret += msg else: - if type != "NULL": + if dc09type != "NULL": msg = '|' + msg ret += self.dc09crypt(msg).hex().upper() ret = '\n' + '{0:04X}'.format(self.dc09crc(ret)) + '{0:04X}'.format(len(ret)) + ret + '\r'