From d3b7ad9fed8e98e78a0cb4015c8a6d58a42662bd Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 29 Jul 2009 18:05:23 +0000 Subject: Fixed lua bug in example file. --- server/xml/macros/example.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/xml/macros/example.xml b/server/xml/macros/example.xml index 97865ca..dbdc4fa 100644 --- a/server/xml/macros/example.xml +++ b/server/xml/macros/example.xml @@ -6,12 +6,13 @@ -- LUA program - return math.pi, 1234567890 + return math.pi, 1234567890, 'local' -- Returning 0, 0 invalidates the result value = 0 timestamp = 0 + source = '' -- Check for the existence of each level. if( lensmeter and @@ -24,7 +25,7 @@ value = lensmeter.right.cyl.value end - return value, timestamp + return value, timestamp, source -- cgit v1.2.3