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

Fix CJMCU build (broken in 08efc2e)

This commit is contained in:
Dominic Clifton 2015-04-22 20:24:23 +01:00
parent 0d8889c8ef
commit c085b2c61d

View file

@ -704,7 +704,10 @@ void loop(void)
// motors do not spin up while we are trying to arm or disarm. // motors do not spin up while we are trying to arm or disarm.
// Allow yaw control for tricopters if the user wants the servo to move even when unarmed. // Allow yaw control for tricopters if the user wants the servo to move even when unarmed.
if (isUsingSticksForArming() && rcData[THROTTLE] <= masterConfig.rxConfig.mincheck if (isUsingSticksForArming() && rcData[THROTTLE] <= masterConfig.rxConfig.mincheck
&& !(masterConfig.mixerMode == MIXER_TRI && masterConfig.mixerConfig.tri_unarmed_servo)) { #ifndef USE_QUAD_MIXER_ONLY
&& !(masterConfig.mixerMode == MIXER_TRI && masterConfig.mixerConfig.tri_unarmed_servo)
#endif
) {
rcCommand[YAW] = 0; rcCommand[YAW] = 0;
} }