only show smallangle on newer releases

10.3.x-maintenance
Steffen Windoffer 2017-11-02 15:37:32 +01:00
parent b4735826eb
commit 8b7551272b
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();
}
}