File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ def save(self):
338
338
"""Save PDO configuration for this map using SDO."""
339
339
logger .info ("Setting COB-ID 0x%X and temporarily disabling PDO" ,
340
340
self .cob_id )
341
- self .com_record [1 ].raw = self .cob_id | PDO_NOT_VALID
341
+ self .com_record [1 ].raw = self .cob_id | PDO_NOT_VALID | ( RTR_NOT_ALLOWED if not self . rtr_allowed else 0x0 )
342
342
if self .trans_type is not None :
343
343
logger .info ("Setting transmission type to %d" , self .trans_type )
344
344
self .com_record [2 ].raw = self .trans_type
@@ -388,7 +388,8 @@ def save(self):
388
388
389
389
if self .enabled :
390
390
logger .info ("Enabling PDO" )
391
- self .com_record [1 ].raw = self .cob_id
391
+ self .com_record [1 ].raw = self .cob_id | (RTR_NOT_ALLOWED if not self .rtr_allowed else 0x0 )
392
+
392
393
self .pdo_node .network .subscribe (self .cob_id , self .on_message )
393
394
394
395
def clear (self ):
You can’t perform that action at this time.
0 commit comments