From 88a24a1fe8186fb81347ff2d61903ddfdb1752bc Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 20 Apr 2024 13:22:16 -0500 Subject: Finish communication of other items with dispatcher --- dispatcherfw.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dispatcherfw.lua') diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 4e98d47..337c0b8 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -683,6 +683,12 @@ elseif event.type == "callbutton" then elseif event.dir == "down" and event.landing > 1 and event.landing <= #mem.params.floornames then mem.dncalls[event.landing] = true end +elseif event.type == "fs1switch" then + mem.fs1switch = event.state + mem.fs1led = event.state + for _,carid in ipairs(mem.params.carids) do + send(carid,"fs1switch",event.state) + end end fs("formspec_version[6]") -- cgit v1.2.3