mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
GCS_MAVLink: use new SERIAL_CONTROL_SERIALn enums
This commit is contained in:
parent
763089addb
commit
1eebae2346
@ -75,6 +75,11 @@ void GCS_MAVLINK::handle_serial_control(const mavlink_message_t &msg)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SERIAL_CONTROL_SERIAL0 ... SERIAL_CONTROL_SERIAL9:
|
||||||
|
// direct access to a SERIALn port
|
||||||
|
stream = port = AP::serialmanager().get_serial_by_id(packet.device - SERIAL_CONTROL_SERIAL0);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// not supported yet
|
// not supported yet
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user