From 5addc5100b02350bad97a4efada05233d1cb7323 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Wed, 30 Oct 2024 12:55:00 +0100 Subject: [PATCH] Ensure accept_no_response_limit > retries. (#2433) --- 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 884d8f017..53ec9336d 100644 --- a/pymodbus/client/base.py +++ b/pymodbus/client/base.py @@ -50,7 +50,7 @@ def __init__( self.last_frame_end: float | None = 0 self.silent_interval: float = 0 self._lock = asyncio.Lock() - self.accept_no_response_limit = 3 + self.accept_no_response_limit = retries + 3 self.count_no_responses = 0 @property