# HG changeset patch # User Laurent Bessard # Date 1366977583 -7200 # Node ID ca1c34ff6c10306d4832b4c9264cbe9581facdc2 # Parent 6f4b08348a603dfe98e96454c3b4362acec9c0e1 Fixed order of LocationCFilesAndCFLAGS, master was called after slaves in PLC init and retrieve functions diff -r 6f4b08348a60 -r ca1c34ff6c10 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))