AC_AutoTune: fix code response for unknown tune type

This commit is contained in:
Bill Geyer 2022-01-29 23:06:07 -05:00 committed by Bill Geyer
parent b260839b13
commit a91cc7aad7
1 changed files with 3 additions and 1 deletions

View File

@ -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