We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baba4a9 commit 2be54f3Copy full SHA for 2be54f3
1 file changed
canopen/pdo/base.py
@@ -540,7 +540,10 @@ def add_variable(
540
return var
541
542
def transmit(self) -> None:
543
- """Transmit the message once."""
+ """Transmit the message once.
544
+
545
+ :raises ValueError: When no COB-ID was assigned.
546
+ """
547
if not self.cob_id:
548
raise ValueError("A valid COB-ID has not been configured")
549
self.pdo_node.network.send_message(self.cob_id, self.data)
0 commit comments