summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/speedlimiter.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/speedlimiter.lua b/scripts/speedlimiter.lua
index 0c92371..3d9a54c 100755
--- a/scripts/speedlimiter.lua
+++ b/scripts/speedlimiter.lua
@@ -34,8 +34,11 @@ function spdLmtMethodEvent(idx)
GetSLIMaxInfo()
-- init table
- initLedTable(mRPMLedTable, 0)
- SetRPMLed("mRPMLedTable")
+ if mSpdLimitMethod > 2 then
+ -- reinit RPM leds only if method > 2
+ initLedTable(mRPMLedTable, 0)
+ SetRPMLed("mRPMLedTable")
+ end
if mNoBlink or (mSpdLimitMethod == 0) then
-- speedlimiter led NOT blinking