diff --git a/pymodbus/client/base.py b/pymodbus/client/base.py index 5c23acfe2..96b594e32 100644 --- a/pymodbus/client/base.py +++ b/pymodbus/client/base.py @@ -195,7 +195,7 @@ async def async_execute(self, request=None): resp = b"Broadcast write sent - no response expected" else: count = 0 - while count < self.params.retries: + while count <= self.params.retries: count += 1 try: req = self._build_response(request.transaction_id)