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

White space tidy

This commit is contained in:
jflyper 2020-02-15 14:59:11 +09:00 committed by mikeller
parent d25c852098
commit ff16686893
58 changed files with 310 additions and 310 deletions

View file

@ -700,7 +700,7 @@ int8_t calculateThrottlePercent(void)
if (featureIsEnabled(FEATURE_3D)
&& !IS_RC_MODE_ACTIVE(BOX3D)
&& !flight3DConfig()->switched_mode3d) {
if (channelData > (rxConfig()->midrc + flight3DConfig()->deadband3d_throttle)) {
ret = ((channelData - rxConfig()->midrc - flight3DConfig()->deadband3d_throttle) * 100) / (PWM_RANGE_MAX - rxConfig()->midrc - flight3DConfig()->deadband3d_throttle);
} else if (channelData < (rxConfig()->midrc - flight3DConfig()->deadband3d_throttle)) {
@ -761,7 +761,7 @@ bool processRx(timeUs_t currentTimeUs)
const throttleStatus_e throttleStatus = calculateThrottleStatus();
const uint8_t throttlePercent = calculateThrottlePercentAbs();
const bool launchControlActive = isLaunchControlActive();
if (airmodeIsEnabled() && ARMING_FLAG(ARMED) && !launchControlActive) {