mirror of https://github.com/ArduPilot/ardupilot
Blimp: make bad-mode-number notification consistent across vehicles
This commit is contained in:
parent
d6a2056cca
commit
ac05a66a54
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue