mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Ground/rawhid: quick hack to help on usb unplug freeze, need to make proper error handling
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1998 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
098b2fd693
commit
d6e9080ec6
@ -161,6 +161,8 @@ void RawHIDReadThread::run()
|
|||||||
}
|
}
|
||||||
else // < 0 => error
|
else // < 0 => error
|
||||||
{
|
{
|
||||||
|
//TODO! make proper error handling, this only quick hack for unplug freeze
|
||||||
|
m_running=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -242,6 +244,8 @@ void RawHIDWriteThread::run()
|
|||||||
}
|
}
|
||||||
else if(ret < 0) // < 0 => error
|
else if(ret < 0) // < 0 => error
|
||||||
{
|
{
|
||||||
|
//TODO! make proper error handling, this only quick hack for unplug freeze
|
||||||
|
m_running=false;
|
||||||
qDebug() << "Error writing to device";
|
qDebug() << "Error writing to device";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user