From 3d513aff52fdae8202bb2a84ecd0d2045db415ce Mon Sep 17 00:00:00 2001 From: gael Date: Sun, 8 May 2016 23:34:48 +0200 Subject: [PATCH] Hide new LED buttons when msp version < 1.18.0 --- tabs/led_strip.html | 6 +++--- tabs/led_strip.js | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tabs/led_strip.html b/tabs/led_strip.html index 1117bb6a..081e3de6 100644 --- a/tabs/led_strip.html +++ b/tabs/led_strip.html @@ -45,9 +45,9 @@ - - - + + +
LED Orientation and Color
diff --git a/tabs/led_strip.js b/tabs/led_strip.js index f64b65c0..10bd1de8 100644 --- a/tabs/led_strip.js +++ b/tabs/led_strip.js @@ -288,6 +288,10 @@ TABS.led_strip.initialize = function (callback, scrollPosition) { }); + if (CONFIG.apiVersion < '1.18.0') { + $(".extra_functions").hide(); + } + GUI.content_ready(callback); }