mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Invert Logic
This commit is contained in:
parent
f86a21c2f3
commit
3a91c690fa
1 changed files with 4 additions and 4 deletions
|
@ -1239,12 +1239,12 @@ static bool processOutCommand(uint8_t cmdMSP)
|
||||||
break;
|
break;
|
||||||
case MSP_ADVANCED_CONFIG :
|
case MSP_ADVANCED_CONFIG :
|
||||||
headSerialReply(6);
|
headSerialReply(6);
|
||||||
if (masterConfig.gyro_lpf == 0) {
|
if (masterConfig.gyro_lpf) {
|
||||||
serialize8(masterConfig.gyro_sync_denom);
|
|
||||||
serialize8(masterConfig.pid_process_denom);
|
|
||||||
} else {
|
|
||||||
serialize8(8); // If gyro_lpf != OFF then looptime is set to 1000
|
serialize8(8); // If gyro_lpf != OFF then looptime is set to 1000
|
||||||
serialize8(1);
|
serialize8(1);
|
||||||
|
} else {
|
||||||
|
serialize8(masterConfig.gyro_sync_denom);
|
||||||
|
serialize8(masterConfig.pid_process_denom);
|
||||||
}
|
}
|
||||||
serialize8(masterConfig.use_unsyncedPwm);
|
serialize8(masterConfig.use_unsyncedPwm);
|
||||||
serialize8(masterConfig.motor_pwm_protocol);
|
serialize8(masterConfig.motor_pwm_protocol);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue