BCT Changes merged
author'Laurent Bessard <laurent.bessard@lolitech.fr>'
Tue, 22 Sep 2009 09:56:52 +0200
changeset 433 26bc7d5d4264
parent 431 c1c92d068ac5 (current diff)
parent 432 f4c0e9c9b3b9 (diff)
child 434 8a0dfd22c408
BCT Changes merged
Viewer.py
--- 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: