From 1a74fb64ea04a6662667ad6653aede296f22ce99 Mon Sep 17 00:00:00 2001 From: samsam Date: Wed, 6 Nov 2024 22:13:27 +0100 Subject: [PATCH] Fixed : retransmission of discarded segments starts at beginning of new block --- canopen/sdo/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canopen/sdo/client.py b/canopen/sdo/client.py index 421fc3d4..e756035c 100644 --- a/canopen/sdo/client.py +++ b/canopen/sdo/client.py @@ -561,7 +561,7 @@ def _retransmit(self): response = self.sdo_client.read_response() res_command, = struct.unpack_from("B", response) seqno = res_command & 0x7F - if seqno == self._ackseq + 1: + if seqno == 1: # We should be back in sync self._ackseq = seqno return response