From 00fb4e2e14b39853fe593cd843daf3f4c57675ee Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 15 Sep 2024 12:38:00 -0500 Subject: Shorten long lines --- dispatcherfw.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'dispatcherfw.lua') 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 -- cgit v1.2.3