plugins/canfestival/config_utils.py
changeset 225 aed21ae6658f
parent 166 121b18748de0
child 270 3b8fb275cf7e
equal deleted inserted replaced
224:aae70ef5af6d 225:aed21ae6658f
   506             for subindex, variable in enumerate(pdo_infos["mapping"]):
   506             for subindex, variable in enumerate(pdo_infos["mapping"]):
   507                 if subindex == 0:
   507                 if subindex == 0:
   508                     continue
   508                     continue
   509                 new_index = False
   509                 new_index = False
   510                 
   510                 
   511                 if type(variable) == IntType:
   511                 if isinstance(variable, (IntType, LongType)):
   512                     # If variable is an integer then variable is unexpected
   512                     # If variable is an integer then variable is unexpected
   513                     self.MasterNode.SetEntry(current_idx + 0x200, subindex, self.TrashVariables[variable])
   513                     self.MasterNode.SetEntry(current_idx + 0x200, subindex, self.TrashVariables[variable])
   514                 else:
   514                 else:
   515                     typeidx, varname = variable
   515                     typeidx, varname = variable
   516                     variable_infos = self.IECLocations[varname]
   516                     variable_infos = self.IECLocations[varname]