mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
oh ***! .. to early on a Saturday morning to be doing this .. sorry.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2974 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
1db840ed8a
commit
5c01155c4f
@ -119,16 +119,16 @@ bool ConnectionManager::connectDevice()
|
||||
// check if opening the device worked
|
||||
if (!io_dev->isOpen())
|
||||
{
|
||||
qDebug() << "Error: could not connect to " << connection_device.devName;
|
||||
qDebug() << "Error: io_dev->isOpen() returned FALSE .. could not open connection too " << connection_device.devName;
|
||||
|
||||
// close the device
|
||||
try
|
||||
{
|
||||
connection_device->closeDevice(connection_device.devName);
|
||||
connection_device.connection->closeDevice(connection_device.devName);
|
||||
}
|
||||
catch (...)
|
||||
{ // handle exception
|
||||
qDebug() << "Exception: connection_device->closeDevice(" << connection_device.devName << ")";
|
||||
qDebug() << "Exception: connection_device.connection->closeDevice(" << connection_device.devName << ")";
|
||||
}
|
||||
|
||||
return false;
|
||||
@ -180,6 +180,8 @@ bool ConnectionManager::disconnectDevice()
|
||||
}
|
||||
|
||||
onConnectionClosed(m_connectionDevice.connection);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user