From c1ce6f30f80da499912c0151baf137c93bb7271b Mon Sep 17 00:00:00 2001 From: Nicola De Pasquale Date: Sun, 16 Aug 2020 11:12:55 +0200 Subject: [PATCH] removed unnecessary static declarations --- src/main/flight/pid.c | 2 +- src/main/sensors/gyro.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/flight/pid.c b/src/main/flight/pid.c index e7c40d8253..11ecbc1b15 100644 --- a/src/main/flight/pid.c +++ b/src/main/flight/pid.c @@ -1186,7 +1186,7 @@ bool pidAntiGravityEnabled(void) #ifdef USE_DYN_LPF void dynLpfDTermUpdate(float throttle) { - static unsigned int cutoffFreq; + unsigned int cutoffFreq; if (pidRuntime.dynLpfFilter != DYN_LPF_NONE) { if (pidRuntime.dynLpfCurveExpo > 0) { cutoffFreq = dynLpfCutoffFreq(throttle, pidRuntime.dynLpfMin, pidRuntime.dynLpfMax, pidRuntime.dynLpfCurveExpo); diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 53a6cba4b6..fb3f8c8b30 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -626,7 +626,7 @@ float dynThrottle(float throttle) { void dynLpfGyroUpdate(float throttle) { if (gyro.dynLpfFilter != DYN_LPF_NONE) { - static unsigned int cutoffFreq; + unsigned int cutoffFreq; if (gyro.dynLpfCurveExpo > 0) { cutoffFreq = dynLpfCutoffFreq(throttle, gyro.dynLpfMin, gyro.dynLpfMax, gyro.dynLpfCurveExpo); } else {