Skip to content

Commit 44d302e

Browse files
committed
Fix iteration, correct writable attribute.
1 parent 848b03f commit 44d302e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

canopen/pdo/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ def _set_com_record(
433433
# mappings for an invalid object 0x0000:00 to overwrite any
434434
# excess entries with all-zeros.
435435
self._fill_map(self.map_array[0].raw)
436-
for var, entry in zip(self.map, self.map_array):
437-
if not entry.writable:
436+
for var, entry in zip(self.map, self.map_array.values()):
437+
if not entry.od.writable:
438438
continue
439439
logger.info(
440440
"Writing %s (0x%04X:%02X, %d bits) to PDO map",

0 commit comments

Comments
 (0)