summaryrefslogtreecommitdiff
path: root/scripts/devhook.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/devhook.lua')
-rw-r--r--[-rwxr-xr-x]scripts/devhook.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/devhook.lua b/scripts/devhook.lua
index 28c40e1..944fa05 100755..100644
--- a/scripts/devhook.lua
+++ b/scripts/devhook.lua
@@ -1,20 +1,20 @@
--- SLIMax Mgr Lua Script v3
+-- SLIMax Mgr Lua Script v3.1
-- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved.
-- param = device type (integer - see GetDeviceType() )
-- return 1 to send processed data to the device and bypass Mgr
-- return 0 to skip and give the control to Mgr
-function deviceReport(devType)
+function deviceReport(deviceType)
-- call custom script
- local result = custom_deviceReport(devType)
+ local result = custom_deviceReport(deviceType)
-- if result = 0 bypass the script below and return 0
-- if result = 1 bypass the script below and return 1
if result <= 1 then return result end
-- if result >= 2 continue
-- call global custom script
- result = global_custom_deviceReport(devType)
+ result = global_custom_deviceReport(deviceType)
-- if result = 0 bypass the script below and return 0
-- if result = 1 bypass the script below and return 1
if result <= 1 then return result end