mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Attempt to get a useful error string when we cannot connect to a USB device;
Fix typo. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3056 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
160695e546
commit
baf848d4f0
@ -119,7 +119,8 @@ bool ConnectionManager::connectDevice()
|
|||||||
// check if opening the device worked
|
// check if opening the device worked
|
||||||
if (!io_dev->isOpen())
|
if (!io_dev->isOpen())
|
||||||
{
|
{
|
||||||
qDebug() << "Error: io_dev->isOpen() returned FALSE .. could not open connection too " << connection_device.devName;
|
qDebug() << "Error: io_dev->isOpen() returned FALSE .. could not open connection to " << connection_device.devName
|
||||||
|
<< ": " << io_dev->errorString();
|
||||||
|
|
||||||
// close the device
|
// close the device
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user