summaryrefslogtreecommitdiff
path: root/server/xml/macros
diff options
context:
space:
mode:
authordeva <deva>2009-07-29 18:05:23 +0000
committerdeva <deva>2009-07-29 18:05:23 +0000
commitd3b7ad9fed8e98e78a0cb4015c8a6d58a42662bd (patch)
treeb14206dd11f96cd009025a86a567229ef92d828d /server/xml/macros
parent11515bf5f3a5971714f2cba9b03dfdafb63e9b15 (diff)
Fixed lua bug in example file.
Diffstat (limited to 'server/xml/macros')
-rw-r--r--server/xml/macros/example.xml5
1 files 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 @@
<maps>
<map name="axis">
-- LUA program
- return math.pi, 1234567890
+ return math.pi, 1234567890, 'local'
</map>
<map name="cyl">
-- 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
</map>
</maps>
<scripts>