objdictgen/subindextable.py
changeset 748 18ed0f3b030a
parent 747 4725d8f909ff
child 757 8150518de469
equal deleted inserted replaced
747:4725d8f909ff 748:18ed0f3b030a
   548                     if not entry_infos["struct"] & OD_MultipleSubindexes or subindex != 0:
   548                     if not entry_infos["struct"] & OD_MultipleSubindexes or subindex != 0:
   549                         subentry_infos = self.Manager.GetSubentryInfos(index, subindex)
   549                         subentry_infos = self.Manager.GetSubentryInfos(index, subindex)
   550                         typeinfos = self.Manager.GetEntryInfos(subentry_infos["type"])
   550                         typeinfos = self.Manager.GetEntryInfos(subentry_infos["type"])
   551                         if typeinfos:
   551                         if typeinfos:
   552                             bus_id = '.'.join(map(str, self.ParentWindow.GetBusId()))
   552                             bus_id = '.'.join(map(str, self.ParentWindow.GetBusId()))
   553                             var_name = "master_%04x_%02x" % (index, subindex)
   553                             var_name = "%s_%04x_%02x" % (self.Manager.GetCurrentNodeName(), index, subindex)
   554                             size = typeinfos["size"]
   554                             size = typeinfos["size"]
   555                             data = wx.TextDataObject(str(
   555                             data = wx.TextDataObject(str(
   556                                 ("%s%s.%d.%d"%(SizeConversion[size], bus_id, index, subindex), 
   556                                 ("%s%s.%d.%d"%(SizeConversion[size], bus_id, index, subindex), 
   557                                  "location", 
   557                                  "location", 
   558                                  IECTypeConversion.get(typeinfos["name"]), 
   558                                  IECTypeConversion.get(typeinfos["name"]),