diff --git a/pymodbus/client/sync.py b/pymodbus/client/sync.py index 3d1fb6d6f..becc5649f 100644 --- a/pymodbus/client/sync.py +++ b/pymodbus/client/sync.py @@ -231,7 +231,6 @@ def _check_read_buffer(self, recv_size=None): time_ = time.time() end = time_ + self.timeout data = None - data_length = 0 ready = select.select([self.socket], [], [], end - time_) if ready[0]: data = self.socket.recv(1024)