Viewer.py
changeset 433 26bc7d5d4264
parent 431 c1c92d068ac5
parent 432 f4c0e9c9b3b9
child 437 59e33406eea8
--- a/Viewer.py	Tue Sep 22 09:56:02 2009 +0200
+++ b/Viewer.py	Tue Sep 22 09:56:52 2009 +0200
@@ -819,7 +819,11 @@
                 wire.SetValid(False)
             if self.Debug:
                 iec_path = self.GetElementIECPath(wire)
-                if self.AddDataConsumer(iec_path.upper(), wire) is None:
+                if iec_path is None:
+                    block = wire.EndConnected.GetParentBlock()
+                    if isinstance(block, LD_PowerRail):
+                        wire.SetValue(True)
+                elif self.AddDataConsumer(iec_path.upper(), wire) is None:
                     wire.SetValue("undefined")
 
         if self.Debug: