GCS_MAVLink: log disarm method

This commit is contained in:
Peter Barker 2020-02-22 00:09:57 +11:00 committed by Andrew Tridgell
parent 1e82ae4676
commit f8f4ed7ee0
1 changed files with 1 additions and 1 deletions

View File

@ -3849,7 +3849,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_long_packet(const mavlink_command_long_t
!is_equal(packet.param2, magic_force_disarm_value)) {
return MAV_RESULT_FAILED;
}
if (AP::arming().disarm()) {
if (AP::arming().disarm(AP_Arming::Method::MAVLINK)) {
return MAV_RESULT_ACCEPTED;
}
return MAV_RESULT_FAILED;