Browse Source

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

gps-1.3.1
Peter Barker 4 years ago committed by Randy Mackay
parent
commit
ac05a66a54
  1. 3
      Blimp/mode.cpp

3
Blimp/mode.cpp

@ -62,8 +62,7 @@ bool Blimp::set_mode(Mode::Number mode, ModeReason reason) @@ -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…
Cancel
Save