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

Fixed absolute adjustments processing without RX input. (#8386)

Fixed absolute adjustments processing without RX input.
This commit is contained in:
Michael Keller 2019-06-07 09:19:58 +12:00 committed by GitHub
commit 6b75e1e0b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -820,6 +820,10 @@ void processRcAdjustments(controlRateConfig_t *controlRateConfig)
MARK_ADJUSTMENT_FUNCTION_AS_BUSY(adjustmentIndex);
}
if (!canUseRxData) {
return;
}
// Process Absolute adjustments
for (int i = 0; i < activeAbsoluteAdjustmentCount; i++) {
static int16_t lastRcData[MAX_ADJUSTMENT_RANGE_COUNT] = { 0 };