Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dc09_spt/msg/dc09_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down