diff -r 7c67286cddbe -r 8e5a9830867e etherlab/EthercatMaster.py --- a/etherlab/EthercatMaster.py Fri Sep 28 17:52:30 2018 +0300 +++ b/etherlab/EthercatMaster.py Fri Sep 28 17:59:28 2018 +0300 @@ -661,7 +661,7 @@ "size": var_size, "IEC_type": entry["Type"], "var_name": "%s_%4.4x_%2.2x" % ("_".join(device_name.split()), index, subindex), - "location": "%s%s%s"%(var_dir, var_size, ".".join(map(str, current_location + + "location": "%s%s%s" % (var_dir, var_size, ".".join(map(str, current_location + (index, subindex)))), "description": "", "children": []}) @@ -703,7 +703,7 @@ # define a unique name for the generated C file location_str = "_".join(map(lambda x:str(x), current_location)) - Gen_Ethercatfile_path = os.path.join(buildpath, "ethercat_%s.c"%location_str) + Gen_Ethercatfile_path = os.path.join(buildpath, "ethercat_%s.c" % location_str) self.FileGenerator = _EthercatCFileGenerator(self) @@ -738,7 +738,7 @@ LocationCFilesAndCFLAGS.insert(0, (current_location, - [(Gen_Ethercatfile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))], + [(Gen_Ethercatfile_path, '"-I%s"' % os.path.abspath(self.GetCTRoot().GetIECLibPath()))], True)) LDFLAGS.append("-lethercat_rtdm -lrtdm")