--- a/plugins/canfestival/config_utils.py Mon Dec 10 17:05:36 2007 +0100
+++ b/plugins/canfestival/config_utils.py Mon Dec 10 17:32:47 2007 +0100
@@ -395,21 +395,21 @@
cobid = self.NodeList.GetSlaveNodeEntry(locationinfos["nodeid"], index - 0x200, 1)
- # Verify that PDO transmit type is conform to sync_TPDOs
- transmittype = self.NodeList.GetSlaveNodeEntry(locationinfos["nodeid"], index - 0x200, 2)
- if sync_TPDOs and transmittype != 0x01 or transmittype != 0xFF:
- # Change TransmitType to SYNCHRONE
- data, nbparams = GeneratePDOMappingDCF(index - 0x200, cobid, 0x01, [])
- # Change TransmitType to ASYCHRONE
- data, nbparams = GeneratePDOMappingDCF(index - 0x200, cobid, 0xFF, [])
- # Add entry to slave dcf to change transmit type of
- self.AddParamsToDCF(locationinfos["nodeid"], data, nbparams)
# Add PDO to MasterMapping
if cobid not in self.MasterMapping.keys():
+ # Verify that PDO transmit type is conform to sync_TPDOs + transmittype = self.NodeList.GetSlaveNodeEntry(locationinfos["nodeid"], index - 0x200, 2) + if sync_TPDOs and transmittype != 0x01 or transmittype != 0xFF: + # Change TransmitType to SYNCHRONE + data, nbparams = GeneratePDOMappingDCF(index - 0x200, cobid, 0x01, []) + # Change TransmitType to ASYCHRONE + data, nbparams = GeneratePDOMappingDCF(index - 0x200, cobid, 0xFF, []) + # Add entry to slave dcf to change transmit type of + self.AddParamsToDCF(locationinfos["nodeid"], data, nbparams) values = node.GetEntry(index)
# Store the size of each entry mapped in PDO