From d6a2056cca76f8e7e6d70ebc8c3f8e77e08a8962 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Aug 2021 12:04:50 +1000 Subject: [PATCH] ArduPlane: make bad-mode-number notification consistent across vehicles --- ArduPlane/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index ab15717ac2ff40..25876cb1b26977 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -289,7 +289,7 @@ bool Plane::set_mode_by_number(const Mode::Number new_mode_number, const ModeRea { Mode *new_mode = plane.mode_from_mode_num(new_mode_number); if (new_mode == nullptr) { - gcs().send_text(MAV_SEVERITY_INFO, "Error: invalid mode number: %d", new_mode_number); + notify_no_such_mode(new_mode_number); return false; } return set_mode(*new_mode, reason);