summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua')
-rw-r--r--conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua b/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
index 581343e..21f516a 100644
--- a/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
+++ b/conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua
@@ -42,8 +42,6 @@ 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
@@ -52,8 +50,7 @@ function _Unit_Converter(source, args, event)
end
event["value"] = value/base
-
- lua2c["luaSet"](source, event)
+ _lua2c['setSignalValueWrap'](source, event)
elseif sourcei>targeti then
@@ -64,7 +61,7 @@ function _Unit_Converter(source, args, event)
event["value"] = value/base
- lua2c["luaSet"](source, event)
+ _lua2c["setSignalValueWrap"](source, event)
else
print("No conversion")