diff --git a/pymodbus/framer/rtu_framer.py b/pymodbus/framer/rtu_framer.py index 4c343dbf9..ef0c52159 100644 --- a/pymodbus/framer/rtu_framer.py +++ b/pymodbus/framer/rtu_framer.py @@ -217,10 +217,11 @@ def processIncomingPacket(self, data, callback, unit, **kwargs): if self.checkFrame(): if self._validate_unit_id(unit, single): self._process(callback) + return else: _logger.debug("Not a valid unit id - {}, " "ignoring!!".format(self._header['uid'])) - self.resetFrame() + self.resetFrame() else: _logger.debug("Frame - [{}] not ready".format(data))