1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

Bug fix configurator.js

This commit is contained in:
tricopterY 2015-03-30 12:48:02 +11:00 committed by Dominic Clifton
parent 9738fef79e
commit c33cf6af2b

View file

@ -260,11 +260,12 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
if(CONFIG.apiVersion >= 1.8) { if(CONFIG.apiVersion >= 1.8) {
$('input[name="autodisarmdelay"]').val(ARMING_CONFIG.auto_disarm_delay); $('input[name="autodisarmdelay"]').val(ARMING_CONFIG.auto_disarm_delay);
$('input[name="disarmkillswitch"]').prop('checked', ARMING_CONFIG.disarm_kill_switch); $('input[name="disarmkillswitch"]').prop('checked', ARMING_CONFIG.disarm_kill_switch);
if(bit_check(BF_CONFIG.features, 4 + 1))//MOTOR_STOP $('div.disarm').show();
if(bit_check(BF_CONFIG.features, 4))//MOTOR_STOP
$('div.disarmdelay').show(); $('div.disarmdelay').show();
else
$('div.disarmdelay').hide();
} }
else
$('div.disarm').hide();
// fill throttle // fill throttle
$('input[name="minthrottle"]').val(MISC.minthrottle); $('input[name="minthrottle"]').val(MISC.minthrottle);