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.
This commit is contained in:
Staroselskii Georgii 2016-07-06 17:37:38 +03:00 committed by Lucas De Marchi
parent fdb43fdc6a
commit 3f1e999fc8

View File

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