equal
deleted
inserted
replaced
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] |