summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project/lua.d')
-rw-r--r--conf.d/project/lua.d/init-daemon-04-oncall.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/conf.d/project/lua.d/init-daemon-04-oncall.lua b/conf.d/project/lua.d/init-daemon-04-oncall.lua
index 7dc4669..71df908 100644
--- a/conf.d/project/lua.d/init-daemon-04-oncall.lua
+++ b/conf.d/project/lua.d/init-daemon-04-oncall.lua
@@ -42,6 +42,8 @@ function _Unit_Converter(source, args, event)
local sourcei, targeti = _positions[sourceunits], _positions[targetunits]
assert(sourcei and targeti)
+ print(event['timestamp'])
+
if sourcei<targeti then
local base=1
@@ -51,7 +53,7 @@ function _Unit_Converter(source, args, event)
event["value"] = value/base
- lua2c["setSignalValueWrap"](source, event)
+ lua2c["luaSet"](source, event)
elseif sourcei>targeti then
@@ -62,7 +64,7 @@ function _Unit_Converter(source, args, event)
event["value"] = value/base
- lua2c["setSignalValueWrap"](source, event)
+ lua2c["luaSet"](source, event)
else
print("No conversion")