summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index 5322e22..ee9a3b5 100644
--- a/controller.lua
+++ b/controller.lua
@@ -414,6 +414,10 @@ function celevator.controller.finish(pos,mem)
celevator.drives[drivetype].resetpos(drivepos)
elseif command.command == "estop" then
celevator.drives[drivetype].estop(drivepos)
+ elseif command.command == "open" then
+ celevator.drives[drivetype].movedoors(drivepos,"open")
+ elseif command.command == "close" then
+ celevator.drives[drivetype].movedoors(drivepos,"close")
end
end
end