From 8b7c60dcd758fe7fe1a4f7af3db78e26f1c32e42 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 15 Oct 2016 19:51:35 +1100 Subject: [PATCH] Rover: use handle_rc_bind --- APMrover2/GCS_Mavlink.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/APMrover2/GCS_Mavlink.cpp b/APMrover2/GCS_Mavlink.cpp index f2760a35b0..cb84df362a 100644 --- a/APMrover2/GCS_Mavlink.cpp +++ b/APMrover2/GCS_Mavlink.cpp @@ -897,12 +897,7 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg) switch(packet.command) { case MAV_CMD_START_RX_PAIR: - // initiate bind procedure - if (!hal.rcin->rc_bind(packet.param1)) { - result = MAV_RESULT_FAILED; - } else { - result = MAV_RESULT_ACCEPTED; - } + result = handle_rc_bind(packet); break; case MAV_CMD_NAV_RETURN_TO_LAUNCH: