From 84bacb4dc07881257366569b340189193de174f0 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sun, 26 Jul 2020 15:43:44 +0200 Subject: [PATCH] Lua Controller: Fix $display and $set_filter not working --- lua_controller/commands.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua_controller/commands.lua b/lua_controller/commands.lua index 03074b0..0058c95 100644 --- a/lua_controller/commands.lua +++ b/lua_controller/commands.lua @@ -97,7 +97,7 @@ techage.lua_ctlr.register_action("set_filter", { slot = tostring(slot or "red") val = tostring(val or "on") if not_protected(self.meta.owner, num) then - techage.send_single(self.meta.number, num, "filter", {slot=slot, val=val}) + techage.send_single(self.meta.number, num, "port", slot.."="..val) end end, help = " $set_filter(num, slot, val)\n".. @@ -120,7 +120,10 @@ techage.lua_ctlr.register_action("display", { if row == 0 then -- add line? techage.send_single(self.meta.number, num, "add", text) else - techage.send_single(self.meta.number, num, "set", {row = row, str = text}) + local payload = safer_lua.Store() + payload.set("row", row) + payload.set("str", text) + techage.send_single(self.meta.number, num, "set", payload) end end end,