Skip to content

Commit

Permalink
Blimp: make bad-mode-number notification consistent across vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed Sep 1, 2021
1 parent d6a2056 commit ac05a66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Blimp/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ac05a66

Please sign in to comment.