1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Merge pull request #6075 from etracer65/rc_smoothing_typo

Fix typo where assignment was used instead of equality
This commit is contained in:
Michael Keller 2018-06-10 03:13:26 +12:00 committed by GitHub
commit 504b1479fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ FAST_CODE uint8_t processRcSmoothingFilter(void)
}
}
if (filterInitialized && (debugMode = DEBUG_RC_SMOOTHING)) {
if (filterInitialized && (debugMode == DEBUG_RC_SMOOTHING)) {
// after training has completed then log the raw rc channel and the calculated
// average rx frame rate that was used to calculate the automatic filter cutoffs
DEBUG_SET(DEBUG_RC_SMOOTHING, 0, lrintf(lastRxData[rxConfig()->rc_smoothing_debug_axis]));