summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-25 13:01:35 -0500
committercheapie <no-email-for-you@example.com>2024-04-25 13:01:35 -0500
commit19e54b58c5d835a9a18570fbcf3885cfb9789626 (patch)
treef0550dabced4ea035578406e5095fc059ebc19fb
parent0f81ed5f77e3b55f4240a0236832d863edf424dc (diff)
downloadcelevator-19e54b58c5d835a9a18570fbcf3885cfb9789626.tar
celevator-19e54b58c5d835a9a18570fbcf3885cfb9789626.tar.gz
celevator-19e54b58c5d835a9a18570fbcf3885cfb9789626.tar.bz2
celevator-19e54b58c5d835a9a18570fbcf3885cfb9789626.tar.xz
celevator-19e54b58c5d835a9a18570fbcf3885cfb9789626.zip
Reopen closing doors when entering independent
-rw-r--r--controllerfw.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/controllerfw.lua b/controllerfw.lua
index 979df8a..9f12981 100644
--- a/controllerfw.lua
+++ b/controllerfw.lua
@@ -788,7 +788,7 @@ elseif mem.indsw then
if oldstate == "stop" or oldstate == "mrinspect" or oldstate == "fault" then
mem.carstate = "resync"
gotofloor(getpos())
- elseif oldstate == "normal" and mem.doorstate == "closed" and not (mem.carmotion or juststarted) then
+ elseif oldstate == "normal" and (mem.doorstate == "closed" or mem.doorstate == "closing") and not (mem.carmotion or juststarted) then
open()
elseif oldstate == "normal" and mem.doorstate == "open" then
interrupt(nil,"close")