mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Added support for 6 rateprofiles.
This commit is contained in:
parent
aa97cf452e
commit
039c55402e
2 changed files with 14 additions and 5 deletions
|
@ -1093,8 +1093,14 @@ TABS.pid_tuning.checkUpdateProfile = function (updateRateProfile) {
|
|||
|
||||
if (GUI.active_tab === 'pid_tuning') {
|
||||
if (semver.gte(CONFIG.apiVersion, "1.20.0")
|
||||
&& CONFIG.numProfiles === 2) {
|
||||
$('.tab-pid_tuning select[name="profile"] .profile3').hide();
|
||||
&& CONFIG.numProfiles === 2) {
|
||||
$('.tab-pid_tuning select[name="profile"] .profile3').hide();
|
||||
}
|
||||
|
||||
if (semver.lt(CONFIG.apiVersion, "1.37.0")) {
|
||||
$('.tab-pid_tuning select[name="rate_profile"] .RateProfile4').hide();
|
||||
$('.tab-pid_tuning select[name="rate_profile"] .RateProfile5').hide();
|
||||
$('.tab-pid_tuning select[name="rate_profile"] .RateProfile6').hide();
|
||||
}
|
||||
|
||||
if (!self.updating && !self.dirty) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue