GCS_MAVLink: use new flow_control_enabled helper

This commit is contained in:
Iampete1 2024-04-10 19:47:24 +01:00 committed by Andrew Tridgell
parent 713eda617f
commit 50fd01af97

View File

@ -108,7 +108,7 @@ bool GCS_MAVLINK::have_flow_control(void)
return false;
}
if (_port->get_flow_control() != AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE) {
if (_port->flow_control_enabled()) {
return true;
}