From c33cf6af2b3d202a7381aab84584d6b2e458a9ae Mon Sep 17 00:00:00 2001 From: tricopterY Date: Mon, 30 Mar 2015 12:48:02 +1100 Subject: [PATCH] Bug fix configurator.js --- tabs/configuration.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tabs/configuration.js b/tabs/configuration.js index ee634d0a..f04a615c 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -260,11 +260,12 @@ TABS.configuration.initialize = function (callback, scrollPosition) { if(CONFIG.apiVersion >= 1.8) { $('input[name="autodisarmdelay"]').val(ARMING_CONFIG.auto_disarm_delay); $('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(); + else + $('div.disarmdelay').hide(); } - else - $('div.disarm').hide(); // fill throttle $('input[name="minthrottle"]').val(MISC.minthrottle);