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; }