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'