Merge pull request #708 from wind0r/fix_small_angle

only show smallangle on newer releases
10.3.x-maintenance
Michael Keller 2017-11-03 08:52:13 +13:00 committed by GitHub
commit 09bca92e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -615,12 +615,12 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.cycles').show();
}
$('._smallAngle').hide();
if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
$('input[id="configurationSmallAngle"]').val(ARMING_CONFIG.small_angle);
if (SENSOR_CONFIG.acc_hardware !== 1) {
$('._smallAngle').show();
} else {
$('._smallAngle').hide();
}
}