diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2013-02-11 13:21:37 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2013-02-11 13:21:37 +0100 |
commit | 61238eecd2496ad711cc60a56fda00cae2dd6fd1 (patch) | |
tree | 337e186bdc737eb85bf831822132fdf637f61785 /scripts/global.lua | |
parent | 7bb45325c828a5c7a7c87ba0ec8744869c30c8dd (diff) |
Updates. TBT
Diffstat (limited to 'scripts/global.lua')
-rwxr-xr-x | scripts/global.lua | 4 |
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
|