From 384e2153fdceab2b4bfc54650daae78d66ccdad5 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Sat, 9 Mar 2019 12:55:09 +0100 Subject: disable RPY D or FF depending on platfrm type --- tabs/pid_tuning.html | 12 ++++++------ tabs/pid_tuning.js | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'tabs') diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index d79768e9..2916c45f 100755 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -40,24 +40,24 @@ - - + + - - + + - - + + diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 1f41c89f..f79a094f 100755 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -212,6 +212,13 @@ TABS.pid_tuning.initialize = function (callback) { $('[name=ff]').prop('disabled', 'disabled'); } + if (!FC.isRpyFfComponentUsed()) { + $('.rpy_ff').prop('disabled', 'disabled'); + } + if (!FC.isRpyDComponentUsed()) { + $('.rpy_d').prop('disabled', 'disabled'); + } + GUI.simpleBind(); // UI Hooks -- cgit v1.2.3