Skip to content

Commit

Permalink
Closes #491
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoomakethu committed Feb 8, 2020
1 parent 5048a1a commit b0b8957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymodbus/framer/socket_framer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def decode_data(self, data):
if len(data) > self._hsize:
tid, pid, length, uid, fcode = struct.unpack(SOCKET_FRAME_HEADER,
data[0:self._hsize+1])
return dict(tid=tid, pid=pid, lenght=length, unit=uid, fcode=fcode)
return dict(tid=tid, pid=pid, length=length, unit=uid, fcode=fcode)
return dict()

def processIncomingPacket(self, data, callback, unit, **kwargs):
Expand Down

0 comments on commit b0b8957

Please sign in to comment.