summaryrefslogtreecommitdiff
path: root/scripts/global.lua
diff options
context:
space:
mode:
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