Browse Source

Copter: fix compilation when ModeAuto is disabled

gps-1.3.1
Peter Barker 3 years ago committed by Randy Mackay
parent
commit
ee46b876cb
  1. 2
      ArduCopter/GCS_Mavlink.cpp

2
ArduCopter/GCS_Mavlink.cpp

@ -991,6 +991,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_ @@ -991,6 +991,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_
MAV_RESULT GCS_MAVLINK_Copter::handle_command_pause_continue(const mavlink_command_int_t &packet)
{
#if MODE_AUTO_ENABLED
if (copter.flightmode->mode_number() != Mode::Number::AUTO) {
// only supported in AUTO mode
return MAV_RESULT_FAILED;
@ -1010,6 +1011,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_pause_continue(const mavlink_comma @@ -1010,6 +1011,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_pause_continue(const mavlink_comma
gcs().send_text(MAV_SEVERITY_INFO, "Resumed mission");
return MAV_RESULT_ACCEPTED;
}
#endif
// fail pause or continue
return MAV_RESULT_FAILED;

Loading…
Cancel
Save