mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Some cosmetic fixes to 'rc_adjustments.c'. (#8162)
Some cosmetic fixes to 'rc_adjustments.c'.
This commit is contained in:
commit
b27107eee3
1 changed files with 1 additions and 19 deletions
|
@ -101,24 +101,6 @@ static void blackboxLogInflightAdjustmentEvent(adjustmentFunction_e adjustmentFu
|
||||||
#endif
|
#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;
|
STATIC_UNIT_TESTED uint8_t adjustmentStateMask = 0;
|
||||||
|
|
||||||
#define MARK_ADJUSTMENT_FUNCTION_AS_BUSY(adjustmentIndex) adjustmentStateMask |= (1 << adjustmentIndex)
|
#define MARK_ADJUSTMENT_FUNCTION_AS_BUSY(adjustmentIndex) adjustmentStateMask |= (1 << adjustmentIndex)
|
||||||
|
@ -478,7 +460,7 @@ static int applyAbsoluteAdjustment(controlRateConfig_t *controlRateConfig, adjus
|
||||||
{
|
{
|
||||||
int newValue;
|
int newValue;
|
||||||
|
|
||||||
if ( !controlRateConfig || !currentPidProfile) {
|
if (!controlRateConfig || !currentPidProfile) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue