summaryrefslogtreecommitdiff
path: root/dispatcherfw.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-15 12:38:00 -0500
committercheapie <no-email-for-you@example.com>2024-09-15 12:38:00 -0500
commit00fb4e2e14b39853fe593cd843daf3f4c57675ee (patch)
treecf2a3b70cb8ad6fe6d587338e1ef571303c4905c /dispatcherfw.lua
parent873001197a25eaaeefcaea91ebddd424301be809 (diff)
downloadcelevator-00fb4e2e14b39853fe593cd843daf3f4c57675ee.tar
celevator-00fb4e2e14b39853fe593cd843daf3f4c57675ee.tar.gz
celevator-00fb4e2e14b39853fe593cd843daf3f4c57675ee.tar.bz2
celevator-00fb4e2e14b39853fe593cd843daf3f4c57675ee.tar.xz
celevator-00fb4e2e14b39853fe593cd843daf3f4c57675ee.zip
Shorten long lines
Diffstat (limited to 'dispatcherfw.lua')
-rw-r--r--dispatcherfw.lua16
1 files changed, 13 insertions, 3 deletions
diff --git a/dispatcherfw.lua b/dispatcherfw.lua
index 97a4127..88e1537 100644
--- a/dispatcherfw.lua
+++ b/dispatcherfw.lua
@@ -595,7 +595,11 @@ elseif event.channel == "status" then
interrupt(1,"run")
end
end
-elseif event.type == "abm" or event.type == "remotewake" or (event.iid == "run" and mem.powerstate ~= "asleep") and (mem.screenstate == "status" or mem.screenstate == "menu") then
+elseif event.type == "abm"
+ or event.type == "remotewake"
+ or (event.iid == "run" and mem.powerstate ~= "asleep")
+ and (mem.screenstate == "status" or mem.screenstate == "menu")
+then
local busy = false
if not mem.upcalls then mem.upcalls = {} end
if not mem.dncalls then mem.dncalls = {} end
@@ -637,7 +641,10 @@ elseif event.type == "abm" or event.type == "remotewake" or (event.iid == "run"
besteta = eta
bestcar = carid
end
- if getpos(carid) == i and mem.carstatus[carid].direction == "up" and (mem.carstatus[carid].doorstate == "opening" or mem.carstatus[carid].doorstate == "open") then
+ if getpos(carid) == i
+ and mem.carstatus[carid].direction == "up"
+ and (mem.carstatus[carid].doorstate == "opening" or mem.carstatus[carid].doorstate == "open")
+ then
alreadyserved = true
end
end
@@ -716,7 +723,10 @@ elseif event.type == "abm" or event.type == "remotewake" or (event.iid == "run"
besteta = eta
bestcar = carid
end
- if getpos(carid) == i and mem.carstatus[carid].direction == "down" and (mem.carstatus[carid].doorstate == "opening" or mem.carstatus[carid].doorstate == "open") then
+ if getpos(carid) == i
+ and mem.carstatus[carid].direction == "down"
+ and (mem.carstatus[carid].doorstate == "opening" or mem.carstatus[carid].doorstate == "open")
+ then
alreadyserved = true
end
end