summaryrefslogtreecommitdiff
path: root/scripts/global.lua
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2013-02-11 13:21:37 +0100
committerHugues Hiegel <hugues@hiegel.fr>2013-02-11 13:21:37 +0100
commit61238eecd2496ad711cc60a56fda00cae2dd6fd1 (patch)
tree337e186bdc737eb85bf831822132fdf637f61785 /scripts/global.lua
parent7bb45325c828a5c7a7c87ba0ec8744869c30c8dd (diff)
Updates. TBT
Diffstat (limited to 'scripts/global.lua')
-rwxr-xr-xscripts/global.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/global.lua b/scripts/global.lua
index 2d6cf3e..fef9ac6 100755
--- a/scripts/global.lua
+++ b/scripts/global.lua
@@ -261,6 +261,10 @@ function GetSLIMaxInfo()
if mOSPBlinkTime == nil then mOSPBlinkTime = 32 end
if mOSPBlinkTime < 1 or mOSPBlinkTime > 48 then mOSPBlinkTime = 32 end
+ -- get current Power LED index
+ mPowerLED = GetContextInfo("ledpowerindex")
+ if mPowerLED == nil then mPowerLED = 11 end
+
-- get current speed Limiter LED index
mSpeedLimiterLED = GetContextInfo("ledspeedlimiterindex")
if mSpeedLimiterLED == nil then mSpeedLimiterLED = 5 end