Skip to content

Commit 98aeef4

Browse files
Update canopen/pdo/base.py
Co-authored-by: André Colomb <github.com@andre.colomb.de>
1 parent b2fa0bb commit 98aeef4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

canopen/pdo/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ def _raw_from(param):
359359
subindex = (value >> 8) & 0xFF
360360
# Ignore the highest bit, it is never valid for <= 64 PDO length
361361
size = value & 0x7F
362-
if getattr(self.pdo_node.node, "curtis_hack", False): # Curtis HACK: mixed up field order
362+
if getattr(self.pdo_node.node, "curtis_hack", False):
363+
# Curtis HACK: mixed up field order
363364
index = value & 0xFFFF
364365
subindex = (value >> 16) & 0xFF
365366
size = (value >> 24) & 0x7F

0 commit comments

Comments
 (0)