Skip to content

Commit f677da2

Browse files
author
Kirill Kirsanov
committed
mts hotfix
1 parent ed3a5e9 commit f677da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _parseCMD(self, st):
153153
self._readX(token, self._pdu['smlen'] * 2)
154154
if self._pdu['dcs'] == 8:
155155
self._pdu[token] = binascii.unhexlify(self._pdu[token]).decode('utf-16-be')
156-
if self._pdu['dcs'] == 0:
156+
if self._pdu['dcs'] in [0, 1, 2, 3]:
157157
self._pdu[token] = binascii.unhexlify(self._pdu[token]).decode('latin1')
158158
state = 'read type'
159159
continue

0 commit comments

Comments
 (0)