From a91cc7aad70bc347faa8b103866f22b55847aa07 Mon Sep 17 00:00:00 2001 From: Bill Geyer Date: Sat, 29 Jan 2022 23:06:07 -0500 Subject: [PATCH] AC_AutoTune: fix code response for unknown tune type --- libraries/AC_AutoTune/AC_AutoTune.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AC_AutoTune/AC_AutoTune.cpp b/libraries/AC_AutoTune/AC_AutoTune.cpp index a737433d23..2bc04519ef 100644 --- a/libraries/AC_AutoTune/AC_AutoTune.cpp +++ b/libraries/AC_AutoTune/AC_AutoTune.cpp @@ -173,7 +173,9 @@ const char *AC_AutoTune::type_string() const case TUNE_COMPLETE: return "Tune Complete"; } - return "Bug"; + return "unknown tune type"; + // this should never happen + INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control); } // run - runs the autotune flight mode