Blimp: make bad-mode-number notification consistent across vehicles

This commit is contained in:
Peter Barker 2021-08-25 12:04:50 +10:00 committed by Randy Mackay
parent d6a2056cca
commit ac05a66a54
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ bool Blimp::set_mode(Mode::Number mode, ModeReason reason)
Mode *new_flightmode = mode_from_mode_num((Mode::Number)mode);
if (new_flightmode == nullptr) {
gcs().send_text(MAV_SEVERITY_WARNING,"No such mode");
AP::logger().Write_Error(LogErrorSubsystem::FLIGHT_MODE, LogErrorCode(mode));
notify_no_such_mode((uint8_t)mode);
return false;
}