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/enter_exit_session.lua | |
parent | 7041ec4378bbc034dd9d80f7fe06f8020ee3779d (diff) |
SliMax Manager 3.++
Diffstat (limited to 'scripts/enter_exit_session.lua')
-rw-r--r--[-rwxr-xr-x] | scripts/enter_exit_session.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/enter_exit_session.lua b/scripts/enter_exit_session.lua index b9b761b..6d42ff2 100755..100644 --- a/scripts/enter_exit_session.lua +++ b/scripts/enter_exit_session.lua @@ -1,17 +1,17 @@ --- SLIMax Mgr Lua Script v3
+-- SLIMax Mgr Lua Script v3.1
-- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved.
-- Event received when the car enter and exit the session.
-- param = device type (integer - see GetDeviceType() )
-- enter session
-function enterSessionEvent(devType)
+function enterSessionEvent(deviceType)
-- call custom script
- local result = custom_enterSessionEvent(devType)
+ local result = custom_enterSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
-- call global custom script
- result = global_custom_enterSessionEvent(devType)
+ result = global_custom_enterSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
@@ -21,14 +21,14 @@ end -- param = device type (integer - see GetDeviceType() )
-- exit session
-function exitSessionEvent(devType)
+function exitSessionEvent(deviceType)
-- call custom script
- local result = custom_exitSessionEvent(devType)
+ local result = custom_exitSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
-- call global custom script
- result = global_custom_exitSessionEvent(devType)
+ result = global_custom_exitSessionEvent(deviceType)
if result <= 1 then return result end
-- if result >= 2 continue
|