diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index fcdaa259..9d6a164c 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -1487,14 +1487,10 @@ pid_tuning.initialize = function (callback) { $('.tab-pid_tuning .tab-container .filter').on('click', () => activateSubtab('filter')); function loadProfilesList() { - let numberOfProfiles = 3; - if (semver.gte(FC.CONFIG.apiVersion, "1.20.0") - && FC.CONFIG.numProfiles === 2) { - numberOfProfiles = 2; - } + const numberOfProfiles = semver.gte(FC.CONFIG.apiVersion, "1.16.0") ? FC.CONFIG.numProfiles : 3; const profileElements = []; - for (let i=0; i