From 49bb4d38a1b4b2c89433e78d64b3929375e146f4 Mon Sep 17 00:00:00 2001 From: murata Date: Tue, 4 May 2021 09:42:54 +0900 Subject: [PATCH] AC_AutoTune: Disable variables that are overwritten --- libraries/AC_AutoTune/AC_AutoTune.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AC_AutoTune/AC_AutoTune.cpp b/libraries/AC_AutoTune/AC_AutoTune.cpp index 7eeb9dac0a..070e365303 100644 --- a/libraries/AC_AutoTune/AC_AutoTune.cpp +++ b/libraries/AC_AutoTune/AC_AutoTune.cpp @@ -157,8 +157,6 @@ bool AC_AutoTune::init_internals(bool _use_poshold, switch (mode) { case FAILED: - // autotune has been run but failed so reset state to uninitialized - mode = UNINITIALISED; // fall through to restart the tuning FALLTHROUGH;