Browse Source

Copter: stop pointlessly passing serial manager around

mission-4.1.18
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
5278919463
  1. 4
      ArduCopter/system.cpp

4
ArduCopter/system.cpp

@ -52,7 +52,7 @@ void Copter::init_ardupilot() @@ -52,7 +52,7 @@ void Copter::init_ardupilot()
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
@ -85,7 +85,7 @@ void Copter::init_ardupilot() @@ -85,7 +85,7 @@ void Copter::init_ardupilot()
barometer.init();
// setup telem slots with serial ports
gcs().setup_uarts(serial_manager);
gcs().setup_uarts();
#if OSD_ENABLED == ENABLED
osd.init();

Loading…
Cancel
Save