From bbb4351eab7476be9a93f0248860ac0d1574d8a6 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 26 Sep 2017 12:17:55 +0200 Subject: Make calling lua2c function from lua works Change-Id: I56d78a3fe567d1f7a6c675f6a56473f96d325c85 Signed-off-by: Romain Forlot --- conf.d/project/etc/init-daemon.json | 2 +- conf.d/project/lua.d/init-daemon-04-oncall.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'conf.d/project') diff --git a/conf.d/project/etc/init-daemon.json b/conf.d/project/etc/init-daemon.json index bc7bd5a..635b697 100644 --- a/conf.d/project/etc/init-daemon.json +++ b/conf.d/project/etc/init-daemon.json @@ -26,7 +26,7 @@ "version": "1.0", "info": "Lua2C Interface", "basename": "lua2c-interface", - "lua2c": ["_setSignalValue"] + "lua2c": ["setSignalValueWrap"] } ] } 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 8912f26..04b6080 100644 --- a/conf.d/project/lua.d/init-daemon-04-oncall.lua +++ b/conf.d/project/lua.d/init-daemon-04-oncall.lua @@ -54,7 +54,7 @@ function _Unit_Converter(source, args, event) print("Value in", targetunits, "is", value/base) _result["result"] = value/base - _setsignalValue(source, _result) + lua2c["setSignalValueWrap"](source, _result) elseif sourcei>targeti then @@ -66,7 +66,7 @@ function _Unit_Converter(source, args, event) print("Value in ", targetunits, "is", value*base) _result["result"] = value/base - _setsignalValue(source, _result) + lua2c["setSignalValueWrap"](source, _result) else print("No conversion") -- cgit 1.2.3-korg