From 4f85d45fcb1c31cf8d9cfeb272d07df553da36b2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 19 Jun 2019 14:24:31 +1000 Subject: [PATCH] Tracker: stop pointlessly passing serial manager around --- AntennaTracker/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index 0040d4ebeb..51b5bdd474 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -26,7 +26,7 @@ void Tracker::init_tracker() serial_manager.init(); // setup first port early to allow BoardConfig to report errors - 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 // more than 5ms remaining in your call to hal.scheduler->delay @@ -50,7 +50,7 @@ void Tracker::init_tracker() barometer.init(); // setup telem slots with serial ports - gcs().setup_uarts(serial_manager); + gcs().setup_uarts(); #if LOGGING_ENABLED == ENABLED log_init();