mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
Fix unused variable warning when USE_ABSOLUTE_CONTROL is not defined
This commit is contained in:
parent
5670aae1ce
commit
2b97763002
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue