diff --git a/pymodbus/framer/socket_framer.py b/pymodbus/framer/socket_framer.py index fff99d99a..e67189732 100644 --- a/pymodbus/framer/socket_framer.py +++ b/pymodbus/framer/socket_framer.py @@ -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):