From deee7a747c9d9c5fefb17dbb1914077bd3ec6a7d Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 21 May 2024 19:48:12 -0500 Subject: Fix cars recalling to the wrong floor when recall is triggered by the dispatcher and the previous recall was to a different floor --- controllerfw.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllerfw.lua b/controllerfw.lua index 09f62f1..26aabf2 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -738,6 +738,9 @@ elseif event.type == "dispatchermsg" then mem.carcalls[event.msg] = true send(event.source,"status",mem) elseif event.channel == "fs1switch" then + if event.msg and not mem.fs1led then + mem.recallto = mem.params.mainlanding or 1 + end mem.fs1switch = event.msg mem.fs1led = event.msg if not event.msg then mem.flashfirehat = false end -- cgit v1.2.3