From 3a91c690fa1df43a69bfc394514e06148179568c Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Tue, 2 Aug 2016 23:32:19 +0200 Subject: [PATCH] Invert Logic --- src/main/io/serial_msp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/io/serial_msp.c b/src/main/io/serial_msp.c index 9a53b56e4..0098db813 100644 --- a/src/main/io/serial_msp.c +++ b/src/main/io/serial_msp.c @@ -1239,12 +1239,12 @@ static bool processOutCommand(uint8_t cmdMSP) break; case MSP_ADVANCED_CONFIG : headSerialReply(6); - if (masterConfig.gyro_lpf == 0) { + if (masterConfig.gyro_lpf) { + serialize8(8); // If gyro_lpf != OFF then looptime is set to 1000 + serialize8(1); + } else { serialize8(masterConfig.gyro_sync_denom); serialize8(masterConfig.pid_process_denom); - } else { - serialize8(8); // If gyro_lpf != OFF then looptime is set to 1000 - serialize8(1); } serialize8(masterConfig.use_unsyncedPwm); serialize8(masterConfig.motor_pwm_protocol);