1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Fix unused variable warning when USE_ABSOLUTE_CONTROL is not de… (#8684)

Fix unused variable warning when USE_ABSOLUTE_CONTROL is not defined
This commit is contained in:
Michael Keller 2019-08-10 17:25:15 +12:00 committed by GitHub
commit adb477c0a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1371,7 +1371,9 @@ void FAST_CODE pidController(const pidProfile_t *pidProfile, timeUs_t currentTim
const float previousIterm = pidData[axis].I;
float itermErrorRate = errorRate;
#ifdef USE_ABSOLUTE_CONTROL
float uncorrectedSetpoint = currentPidSetpoint;
#endif
#if defined(USE_ITERM_RELAX)
if (!launchControlActive && !inCrashRecoveryMode) {