mirror of https://github.com/ArduPilot/ardupilot
Copter: use handle_rc_bind
This commit is contained in:
parent
6878a9a270
commit
57830784e2
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue