1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 01:05:15 +03:00

Adapted the check for running motors in the motor control for 3D.

This commit is contained in:
NightHawk32 2015-11-12 16:22:04 -05:00
parent d183f19369
commit 09100c8eba

View file

@ -365,10 +365,17 @@ TABS.motors.initialize = function (callback) {
var motors_running = false;
for (var i = 0; i < MOTOR_DATA.length; i++) {
if (MOTOR_DATA[i] > MISC.mincommand) {
motors_running = true;
break;
}
if( ! bit_check(BF_CONFIG.features,12) ){
if (MOTOR_DATA[i] > MISC.mincommand) {
motors_running = true;
break;
}
}else{
if( (MOTOR_DATA[i] < _3D.deadband3d_low) || (MOTOR_DATA[i] > _3D.deadband3d_high) ){
motors_running = true;
break;
}
}
}
if (motors_running) {