From b4606b631fecee81a592401b477114f5e50aa551 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sun, 13 Aug 2023 13:21:43 +0200 Subject: [PATCH] retries=1, solved. (#1731) --- pymodbus/client/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)