Skip to content

Commit

Permalink
Fix unused variable warning when USE_ABSOLUTE_CONTROL is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
etracer65 committed Aug 8, 2019
1 parent 5670aae commit 2b97763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2b97763

Please sign in to comment.