graphics/DebugDataConsumer.py
changeset 1365 debc97102b23
parent 1363 e87e0166d0a7
child 1571 486f94a8032c
--- a/graphics/DebugDataConsumer.py	Mon Oct 14 10:49:04 2013 +0200
+++ b/graphics/DebugDataConsumer.py	Mon Oct 14 12:28:44 2013 +0200
@@ -197,7 +197,7 @@
         """
         self.DataType = data_type
     
-    def NewValues(self, ticks, values, forced=False, raw="BOOL"):
+    def NewValues(self, tick, values, raw="BOOL"):
         """
         Function called by debug thread when a new debug value is available
         @param tick: PLC tick when value was captured
@@ -205,7 +205,7 @@
         @param forced: Forced flag, True if value is forced (default: False)
         @param raw: Data type of values not translated (default: 'BOOL')
         """
-        tick, value = ticks[-1], values[-1]
+        value, forced = values
         
         # Translate value to IEC literal
         if self.DataType != raw: