graphics/DebugDataConsumer.py
changeset 1220 16c283246241
parent 1214 2ef048b5383c
child 1363 e87e0166d0a7
--- a/graphics/DebugDataConsumer.py	Tue Jun 04 17:29:31 2013 +0200
+++ b/graphics/DebugDataConsumer.py	Wed Jun 05 00:19:11 2013 +0200
@@ -197,16 +197,16 @@
         """
         self.DataType = data_type
     
-    def NewValue(self, tick, value, forced=False, raw_bool=True):
+    def NewValue(self, tick, value, forced=False, raw="BOOL"):
         """
         Function called by debug thread when a new debug value is available
         @param tick: PLC tick when value was captured
         @param value: Value captured
         @param forced: Forced flag, True if value is forced (default: False)
-        @param raw_bool: Bool values must be treated rawly (default: True)
+        @param raw: Data type of values not translated (default: 'BOOL')
         """
         # Translate value to IEC literal
-        if self.DataType != "BOOL" or not raw_bool:
+        if self.DataType != raw:
             value = TYPE_TRANSLATOR.get(self.DataType, str)(value)
         
         # Store value and forced flag when value update is inhibited