From ac05a66a54bdde34cd89d99ed4f01535af4c5386 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Aug 2021 12:04:50 +1000 Subject: [PATCH] Blimp: make bad-mode-number notification consistent across vehicles --- Blimp/mode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Blimp/mode.cpp b/Blimp/mode.cpp index 6dca6000311dbb..3e916c70a9ba2b 100644 --- a/Blimp/mode.cpp +++ b/Blimp/mode.cpp @@ -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; }