etherlab/EthercatMaster.py
changeset 2391 3315e621d7fb
parent 2390 81116c5db60f
child 2392 aad985da14f7
equal deleted inserted replaced
2390:81116c5db60f 2391:3315e621d7fb
   709         return "__M%s_%s" % (self.GetSizeOfType(var_type), "_".join(map(str, location)))
   709         return "__M%s_%s" % (self.GetSizeOfType(var_type), "_".join(map(str, location)))
   710 
   710 
   711     def _Generate_C(self, buildpath, locations):
   711     def _Generate_C(self, buildpath, locations):
   712         current_location = self.GetCurrentLocation()
   712         current_location = self.GetCurrentLocation()
   713         # define a unique name for the generated C file
   713         # define a unique name for the generated C file
   714         location_str = "_".join(map(lambda x: str(x), current_location))
   714         location_str = "_".join(map(str, current_location))
   715 
   715 
   716         Gen_Ethercatfile_path = os.path.join(buildpath, "ethercat_%s.c" % location_str)
   716         Gen_Ethercatfile_path = os.path.join(buildpath, "ethercat_%s.c" % location_str)
   717 
   717 
   718         self.FileGenerator = _EthercatCFileGenerator(self)
   718         self.FileGenerator = _EthercatCFileGenerator(self)
   719 
   719