Browse Source

AP_HAL_Linux: remove ConsoleDevice construction from UARTDriver constructor

Since we're going to create ConsoleDevice in UARTDriver either way,
there's no need to do anything except setting the console flag.
master
Staroselskii Georgii 9 years ago committed by Lucas De Marchi
parent
commit
3f1e999fc8
  1. 2
      libraries/AP_HAL_Linux/UARTDriver.cpp

2
libraries/AP_HAL_Linux/UARTDriver.cpp

@ -39,8 +39,6 @@ UARTDriver::UARTDriver(bool default_console) : @@ -39,8 +39,6 @@ UARTDriver::UARTDriver(bool default_console) :
_flow_control(FLOW_CONTROL_DISABLE)
{
if (default_console) {
_device = new ConsoleDevice();
_device->open();
_console = true;
}
}

Loading…
Cancel
Save