summaryrefslogtreecommitdiff
path: root/controllerfw.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-05-21 19:48:12 -0500
committercheapie <no-email-for-you@example.com>2024-05-21 19:48:12 -0500
commitdeee7a747c9d9c5fefb17dbb1914077bd3ec6a7d (patch)
treed29ce67aea9df24b563d76e72ed28e09824ff0d6 /controllerfw.lua
parent58ac782a8a3418702e8c525d852466030a65db25 (diff)
downloadcelevator-main.tar
celevator-main.tar.gz
celevator-main.tar.bz2
celevator-main.tar.xz
celevator-main.zip
Fix cars recalling to the wrong floor when recall is triggered by the dispatcher and the previous recall was to a different floorHEADmain
Diffstat (limited to 'controllerfw.lua')
-rw-r--r--controllerfw.lua3
1 files changed, 3 insertions, 0 deletions
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