From 96386854eb8f8ec1be00742c9db5568eb657c860 Mon Sep 17 00:00:00 2001 From: mikeller Date: Sat, 4 May 2019 22:22:08 +1200 Subject: [PATCH] Some cosmetic fixes to 'rc_adjustments.c'. --- src/main/fc/rc_adjustments.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/main/fc/rc_adjustments.c b/src/main/fc/rc_adjustments.c index f4941f6c9a..4c3f03c4e4 100644 --- a/src/main/fc/rc_adjustments.c +++ b/src/main/fc/rc_adjustments.c @@ -101,24 +101,6 @@ static void blackboxLogInflightAdjustmentEvent(adjustmentFunction_e adjustmentFu #endif } -#if 0 -static void blackboxLogInflightAdjustmentEventFloat(adjustmentFunction_e adjustmentFunction, float newFloatValue) -{ -#ifndef USE_BLACKBOX - UNUSED(adjustmentFunction); - UNUSED(newFloatValue); -#else - if (blackboxConfig()->device) { - flightLogEvent_inflightAdjustment_t eventData; - eventData.adjustmentFunction = adjustmentFunction; - eventData.newFloatValue = newFloatValue; - eventData.floatFlag = true; - blackboxLogEvent(FLIGHT_LOG_EVENT_INFLIGHT_ADJUSTMENT, (flightLogEventData_t*)&eventData); - } -#endif -} -#endif - STATIC_UNIT_TESTED uint8_t adjustmentStateMask = 0; #define MARK_ADJUSTMENT_FUNCTION_AS_BUSY(adjustmentIndex) adjustmentStateMask |= (1 << adjustmentIndex) @@ -478,7 +460,7 @@ static int applyAbsoluteAdjustment(controlRateConfig_t *controlRateConfig, adjus { int newValue; - if ( !controlRateConfig || !currentPidProfile) { + if (!controlRateConfig || !currentPidProfile) { return 0; }