etherlab/EthercatCIA402Slave.py
changeset 2118 c317b1aaf920
parent 2111 f2cffda17d00
child 2136 71fdfd4a12a3
--- a/etherlab/EthercatCIA402Slave.py	Thu Apr 04 17:50:43 2013 +0900
+++ b/etherlab/EthercatCIA402Slave.py	Fri Apr 05 00:09:54 2013 +0200
@@ -51,8 +51,7 @@
 }
 """
 
-BLOCK_FUNTION_DEFINITION_TEMPLATE = """    if (!__CIA402Node_%(location)s.axis->__mcl_func_MC_%(blocktype)s)
-__CIA402Node_%(location)s.axis->__mcl_func_MC_%(blocktype)s = __%(blocktype)s_%(location)s;"""
+BLOCK_FUNTION_DEFINITION_TEMPLATE = "        __CIA402Node_%(location)s.axis->__mcl_func_MC_%(blocktype)s = __%(blocktype)s_%(location)s;"
 
 GLOBAL_INSTANCES = [
     {"blocktype": "GetTorqueLimit",