summaryrefslogtreecommitdiff
path: root/fw.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fw.lua')
-rw-r--r--fw.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/fw.lua b/fw.lua
index 6a04ac5..54aa933 100644
--- a/fw.lua
+++ b/fw.lua
@@ -15,6 +15,16 @@ modes = {"Sensor","Timer","Phase Lock"}
panellock = {"Unlocked","Locked"}
logmodes = {"Quiet","Normal","Verbose"}
+--Only accept digilines signals on the necessary channels
+local event_ok = false
+if event.type ~= "digiline" then event_ok = true end
+if (not event_ok) and (string.find(event.channel,"detector") or string.find(event.channel,"preempt")) then event_ok = true end
+if (not event_ok) and (event.channel == "touchscreen") then event_ok = true end
+if not event_ok then
+ --Digilines signal on unimportant channel, stop execution
+ return
+end
+
--Used for reverse lookups
function pivot(table)
local out = {}