From e66ab2d8febbc86438aebb9346587f7fdc1dece0 Mon Sep 17 00:00:00 2001 From: Thorsten Laux Date: Fri, 2 Aug 2019 17:30:22 +0200 Subject: [PATCH] ifdef static var --- src/main/flight/mixer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/flight/mixer.c b/src/main/flight/mixer.c index e92d51308f..0f1e76939d 100644 --- a/src/main/flight/mixer.c +++ b/src/main/flight/mixer.c @@ -485,7 +485,9 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs) static uint16_t rcThrottlePrevious = 0; // Store the last throttle direction for deadband transitions static timeUs_t reversalTimeUs = 0; // time when motors last reversed in 3D mode static float motorRangeMinIncrease = 0; +#ifdef USE_DYN_IDLE static float oldMinRps; +#endif float currentThrottleInputRange = 0; if (featureIsEnabled(FEATURE_3D)) {