1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Fix unused variable warning when USE_ABSOLUTE_CONTROL is not defined

This commit is contained in:
Bruce Luckcuck 2019-08-08 08:10:39 -04:00
parent 5670aae1ce
commit 2b97763002

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) {