diff options
Diffstat (limited to 'controllerfw.lua')
-rw-r--r-- | controllerfw.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/controllerfw.lua b/controllerfw.lua index 9f12981..dedb182 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -675,6 +675,14 @@ elseif event.type == "remotemsg" then elseif event.channel == "carcall" and mem.carstate == "normal" then mem.carcalls[event.msg] = true end +elseif event.type == "lightcurtain" then + if mem.carstate == "normal" or mem.carstate == "indep" then + if mem.doorstate == "closing" then + open() + elseif mem.doorstate == "open" and mem.carstate == "normal" then + interrupt(mem.params.doortimer,"close") + end + end end local oldstate = mem.carstate |