summaryrefslogtreecommitdiffstats
path: root/conf.d/project
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/project')
-rw-r--r--conf.d/project/lua.d/init-daemon-04-oncall.lua12
1 files changed, 4 insertions, 8 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 04b6080..7dc4669 100644
--- a/conf.d/project/lua.d/init-daemon-04-oncall.lua
+++ b/conf.d/project/lua.d/init-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)
- AFB:notice("LUA OnCall Echo Args source=%s args=%s event=%s", source, args, event)
-
if sourcei<targeti then
local base=1
@@ -51,10 +49,9 @@ function _Unit_Converter(source, args, event)
base=base*_interval[i][2]
end
- print("Value in", targetunits, "is", value/base)
- _result["result"] = value/base
+ event["value"] = value/base
- lua2c["setSignalValueWrap"](source, _result)
+ lua2c["setSignalValueWrap"](source, event)
elseif sourcei>targeti then
@@ -63,10 +60,9 @@ function _Unit_Converter(source, args, event)
base=base*interval[i][2]
end
- print("Value in ", targetunits, "is", value*base)
- _result["result"] = value/base
+ event["value"] = value/base
- lua2c["setSignalValueWrap"](source, _result)
+ lua2c["setSignalValueWrap"](source, event)
else
print("No conversion")