Fixed bug with global instance declaration
authorLaurent Bessard
Fri, 10 May 2013 09:16:07 +0200
changeset 2148 2225494acbf2
parent 2147 a8b095de63e8
child 2149 7f473761c932
Fixed bug with global instance declaration
etherlab/EthercatCIA402Slave.py
--- a/etherlab/EthercatCIA402Slave.py	Fri May 10 08:44:05 2013 +0200
+++ b/etherlab/EthercatCIA402Slave.py	Fri May 10 09:16:07 2013 +0200
@@ -134,7 +134,7 @@
     
     def CTNGlobalInstances(self):
         current_location = self.GetCurrentLocation()
-        return [("%s_%s" % (block_infos["blocktype"], "_".join(map(str, current_location)), None),
+        return [("%s_%s" % (block_infos["blocktype"], "_".join(map(str, current_location))),
                  "EtherLab%s" % block_infos["blocktype"], "") for block_infos in GLOBAL_INSTANCES]
     
     def _getCIA402AxisRef(self):