mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Plane: stop pointlessly passing serial manager around
This commit is contained in:
parent
5278919463
commit
a900fa0117
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user