1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

OP GCS/HID - Now found the true problem, I just need to find an hungry French monkey now.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3024 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2011-03-11 18:52:44 +00:00 committed by zedamota
parent 162deda2ba
commit e1eaf4d132

View File

@ -57,6 +57,7 @@ USBMonitor::USBMonitor(QObject *parent): QThread(parent) {
notificationWidget = 0;
#endif // Q_OS_WIN
setUpNotifications();
m_instance=this;
}
USBMonitor::~USBMonitor()
@ -223,10 +224,8 @@ Returns a list of all currently available devices
*/
QList<USBPortInfo> USBMonitor::availableDevices()
{
GUID guid_hidd;
HidD_GetHidGuid(&guid_hidd);
QList<USBPortInfo> ports;
enumerateDevicesWin(guid_hidd, &ports);
enumerateDevicesWin(guid_hid, &ports);
//qDebug()<<"USBMonitorWin availabledevices="<<ports.count();
return ports;
}