We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 264ff4f + 61f4198 commit 4b76c39Copy full SHA for 4b76c39
1 file changed
canopen/sdo/client.py
@@ -406,7 +406,8 @@ def write(self, b):
406
res_command, = struct.unpack("B", response[0:1])
407
if res_command & 0xE0 != RESPONSE_SEGMENT_DOWNLOAD:
408
raise SdoCommunicationError(
409
- "Unexpected response 0x%02X (expected 0x%02X)" % res_command)
+ "Unexpected response 0x%02X (expected 0x%02X)" %
410
+ (res_command, RESPONSE_SEGMENT_DOWNLOAD))
411
# Advance position
412
self.pos += bytes_sent
413
return bytes_sent
0 commit comments