Fixed order of LocationCFilesAndCFLAGS, master was called after slaves in PLC init and retrieve functions
--- 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))