1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Some cosmetic fixes to 'rc_adjustments.c'. (#8162)

Some cosmetic fixes to 'rc_adjustments.c'.
This commit is contained in:
Michael Keller 2019-05-05 22:37:58 +12:00 committed by GitHub
commit b27107eee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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