mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Bug fix configurator.js
This commit is contained in:
parent
9738fef79e
commit
c33cf6af2b
1 changed files with 4 additions and 3 deletions
|
@ -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
|
else
|
||||||
$('div.disarm').hide();
|
$('div.disarmdelay').hide();
|
||||||
|
}
|
||||||
|
|
||||||
// fill throttle
|
// fill throttle
|
||||||
$('input[name="minthrottle"]').val(MISC.minthrottle);
|
$('input[name="minthrottle"]').val(MISC.minthrottle);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue