Skip to content

Commit ea6a97b

Browse files
authored
Merge pull request #130 from semyont/patch-1
fix ModiconPayloadDecoder __init__ fail
2 parents 99f16da + ce4fbbf commit ea6a97b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/contrib/modicon-payload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,14 @@ class ModiconPayloadDecoder(object):
155155
second = decoder.decode_16bit_uint()
156156
'''
157157

158-
def __init__(self, payload):
158+
def __init__(self, payload, endian):
159159
''' Initialize a new payload decoder
160160
161161
:param payload: The payload to decode with
162162
'''
163163
self._payload = payload
164164
self._pointer = 0x00
165+
self._endian = endian
165166

166167
@staticmethod
167168
def fromRegisters(registers, endian=Endian.Little):

0 commit comments

Comments
 (0)