mirror of https://github.com/ArduPilot/ardupilot
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:
parent
fdb43fdc6a
commit
3f1e999fc8
|
@ -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…
Reference in New Issue