Copter: use handle_rc_bind

This commit is contained in:
Andrew Tridgell 2016-10-15 19:51:31 +11:00
parent 6878a9a270
commit 57830784e2
1 changed files with 1 additions and 6 deletions

View File

@ -1205,12 +1205,7 @@ void GCS_MAVLINK_Copter::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_TAKEOFF: {