mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Merge pull request #708 from wind0r/fix_small_angle
only show smallangle on newer releases
This commit is contained in:
commit
09bca92e9d
1 changed files with 14 additions and 14 deletions
|
@ -615,12 +615,12 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
|
|
||||||
$('div.cycles').show();
|
$('div.cycles').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('._smallAngle').hide();
|
||||||
if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||||
$('input[id="configurationSmallAngle"]').val(ARMING_CONFIG.small_angle);
|
$('input[id="configurationSmallAngle"]').val(ARMING_CONFIG.small_angle);
|
||||||
if (SENSOR_CONFIG.acc_hardware !== 1) {
|
if (SENSOR_CONFIG.acc_hardware !== 1) {
|
||||||
$('._smallAngle').show();
|
$('._smallAngle').show();
|
||||||
} else {
|
|
||||||
$('._smallAngle').hide();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue