Fixed order of LocationCFilesAndCFLAGS, master was called after slaves in PLC init and retrieve functions
authorLaurent Bessard
Fri, 26 Apr 2013 13:59:43 +0200
changeset 2135 ca1c34ff6c10
parent 2134 6f4b08348a60
child 2141 6963460bfe0f
Fixed order of LocationCFilesAndCFLAGS, master was called after slaves in PLC init and retrieve functions
etherlab/EthercatMaster.py
--- a/etherlab/EthercatMaster.py	Wed Apr 24 23:27:35 2013 +0200
+++ b/etherlab/EthercatMaster.py	Fri Apr 26 13:59:43 2013 +0200
@@ -702,7 +702,7 @@
         
         self.FileGenerator.GenerateCFile(Gen_Ethercatfile_path, location_str, self.BaseParams.getIEC_Channel())
         
-        LocationCFilesAndCFLAGS.append(
+        LocationCFilesAndCFLAGS.insert(0, 
             (current_location, 
              [(Gen_Ethercatfile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))], 
              True))