Skip to content

Commit

Permalink
Update canopen/pdo/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: André Colomb <[email protected]>
  • Loading branch information
friederschueler and acolomb authored Jun 4, 2024
1 parent 98aeef4 commit 49dfbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canopen/pdo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def _raw_from(param):
def save(self) -> None:
"""Save PDO configuration for this map using SDO."""
if self.cob_id is None:
logger.debug("Skipping %s: no cob-id set", self.com_record.od.name)
logger.debug("Skipping %s: no COB-iD set", self.com_record.od.name)
return
logger.info("Setting COB-ID 0x%X and temporarily disabling PDO", self.cob_id)
self.com_record[1].raw = self.cob_id | PDO_NOT_VALID | (RTR_NOT_ALLOWED if not self.rtr_allowed else 0x0)
Expand Down

0 comments on commit 49dfbe3

Please sign in to comment.