Browse Source

AP_Mount: update for new find_serial() interface

master
Andrew Tridgell 10 years ago
parent
commit
60f266da19
  1. 4
      libraries/AP_Mount/AP_Mount_Alexmos.cpp

4
libraries/AP_Mount/AP_Mount_Alexmos.cpp

@ -6,9 +6,7 @@ extern const AP_HAL::HAL& hal; @@ -6,9 +6,7 @@ extern const AP_HAL::HAL& hal;
void AP_Mount_Alexmos::init(const AP_SerialManager& serial_manager)
{
// check for alexmos protcol
AP_SerialManager::serial_state alexmos_serial;
if (serial_manager.find_serial(AP_SerialManager::SerialProtocol_AlexMos, alexmos_serial)) {
_port = alexmos_serial.uart;
if ((_port = serial_manager.find_serial(AP_SerialManager::SerialProtocol_AlexMos))) {
_initialised = true;
get_boardinfo();
read_params(0); //we request parameters for profile 0 and therfore get global and profile parameters

Loading…
Cancel
Save