From 6878a9a270c99e07ff3b00a18c342b9f1c784c44 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 15 Oct 2016 19:51:27 +1100 Subject: [PATCH] Plane: use handle_rc_bind --- ArduPlane/GCS_Mavlink.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index a49626366c..d249b7d3b2 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1278,12 +1278,7 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg) break; 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_LOITER_UNLIM: