Skip to content

Commit

Permalink
Merge pull request #1 from pazzarpj/PR-#356
Browse files Browse the repository at this point in the history
  • Loading branch information
pazzarpj authored Dec 3, 2018
2 parents fd1b8a3 + 77abfa9 commit 82ebb5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymodbus/framer/rtu_framer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 82ebb5f

Please sign in to comment.