We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c6e4b commit a0a40b8Copy full SHA for a0a40b8
canopen/sdo/client.py
@@ -561,7 +561,7 @@ def _retransmit(self):
561
response = self.sdo_client.read_response()
562
res_command, = struct.unpack_from("B", response)
563
seqno = res_command & 0x7F
564
- if seqno == 1:
+ if seqno == self._ackseq + 1:
565
# We should be back in sync
566
self._ackseq = seqno
567
return response
@@ -575,8 +575,7 @@ def _ack_block(self):
575
request[1] = self._ackseq
576
request[2] = self.blksize
577
self.sdo_client.send_request(request)
578
- if self._ackseq == self.blksize:
579
- self._ackseq = 0
+ self._ackseq = 0
580
581
def _end_upload(self):
582
0 commit comments