From a900fa0117448a3a3eb5b695af2d8056e5a44bd5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 19 Jun 2019 14:24:56 +1000 Subject: [PATCH] Plane: stop pointlessly passing serial manager around --- ArduPlane/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 49cf637c52..5d6e5dc900 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -55,7 +55,7 @@ void Plane::init_ardupilot() // initialise serial ports serial_manager.init(); - gcs().chan(0).setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, 0); + gcs().chan(0).setup_uart(AP_SerialManager::SerialProtocol_MAVLink, 0); // Register mavlink_delay_cb, which will run anytime you have @@ -96,7 +96,7 @@ void Plane::init_ardupilot() rpm_sensor.init(); // setup telem slots with serial ports - gcs().setup_uarts(serial_manager); + gcs().setup_uarts(); #if OSD_ENABLED == ENABLED osd.init();