diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-18 14:03:53 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-18 14:03:53 +0100 |
commit | 9fe1a36ddfc85638958681dc3f929d47df117cd3 (patch) | |
tree | 1b92edbe82507692ec684297edd5b32b2cbf2c8e /conf.d/project | |
parent | 41ea8b75daa57b1c7259bd42c7e5bc16f33b38ec (diff) |
Several small fixes and improvements.
Cleaning
Make some additionnals test avoiding segfault,
Filling opitonnal response object to avoid warning
Wrong plugins type register macro called
Change-Id: I012cc3ddc5f89b75dbc46c3ea535717141823884
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project')
-rw-r--r-- | conf.d/project/lua.d/signal-composer-daemon-04-oncall.lua | 9 |
1 files changed, 4 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 21f516a..0295b6d 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 @@ -50,8 +50,6 @@ function _Unit_Converter(source, args, event) end event["value"] = value/base - _lua2c['setSignalValueWrap'](source, event) - elseif sourcei>targeti then local base=1 @@ -60,12 +58,13 @@ function _Unit_Converter(source, args, event) end event["value"] = value/base - - _lua2c["setSignalValueWrap"](source, event) - else print("No conversion") end + + print('Converted value is: '.. event['value'] .. args["to"]) + + _lua2c['setSignalValueWrap'](source, event) end -- Display receive arguments and echo them to caller |