Viewer.py
changeset 279 2ad276084038
parent 277 5fc11b2d4fbb
child 283 c4199b88cf60
--- a/Viewer.py	Thu Sep 25 10:28:24 2008 +0200
+++ b/Viewer.py	Thu Sep 25 10:29:47 2008 +0200
@@ -580,8 +580,9 @@
                         iec_path = "%s.%s.%s"%(self.InstancePath, block.GetName(), connectorname)
                     else:
                         if connectorname == "":
-                            connectorname = "OUT"
-                        iec_path = "%s.%s%d_%s"%(self.InstancePath, block.GetType(), block.GetId(), connectorname)
+                            iec_path = "%s.%s%d"%(self.InstancePath, block.GetType(), block.GetId())
+                        else:
+                            iec_path = "%s.%s%d_%s"%(self.InstancePath, block.GetType(), block.GetId(), connectorname)
                     if self.Controler.SubscribeDebugIECVariable(iec_path.upper(), wire) is not None:
                         self.Subscribed[wire] = iec_path.upper()
                     else: