diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2013-11-15 10:09:12 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2013-11-15 10:09:12 +0100 |
commit | 17ef33a3fc62a31565193320f1f5583077403b19 (patch) | |
tree | 949d91ff75bf247c7bd258901dd31c3cb6a212f7 /scripts/devhook.lua | |
parent | 7041ec4378bbc034dd9d80f7fe06f8020ee3779d (diff) |
SliMax Manager 3.++
Diffstat (limited to 'scripts/devhook.lua')
-rw-r--r--[-rwxr-xr-x] | scripts/devhook.lua | 8 |
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
|