diff --git a/libraries/AP_Devo_Telem/AP_Devo_Telem.cpp b/libraries/AP_Devo_Telem/AP_Devo_Telem.cpp index f563ecb9a1..bd1f7c1fca 100644 --- a/libraries/AP_Devo_Telem/AP_Devo_Telem.cpp +++ b/libraries/AP_Devo_Telem/AP_Devo_Telem.cpp @@ -40,8 +40,10 @@ AP_DEVO_Telem::AP_DEVO_Telem() } // init - perform require initialisation including detecting which protocol to use -void AP_DEVO_Telem::init(const AP_SerialManager& serial_manager) +void AP_DEVO_Telem::init() { + const AP_SerialManager& serial_manager = AP::serialmanager(); + // check for DEVO_DPort if ((_port = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Devo_Telem, 0))) { _port->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); diff --git a/libraries/AP_Devo_Telem/AP_Devo_Telem.h b/libraries/AP_Devo_Telem/AP_Devo_Telem.h index 9ad61a68dc..462c26b693 100644 --- a/libraries/AP_Devo_Telem/AP_Devo_Telem.h +++ b/libraries/AP_Devo_Telem/AP_Devo_Telem.h @@ -27,8 +27,7 @@ public: AP_DEVO_Telem(const AP_DEVO_Telem &other) = delete; AP_DEVO_Telem &operator=(const AP_DEVO_Telem&) = delete; - // init - perform require initialisation including detecting which protocol to use - void init(const AP_SerialManager& serial_manager); + void init(); // update flight control mode. The control mode is vehicle type specific void update_control_mode(uint8_t mode)