mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15: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:
parent
162deda2ba
commit
e1eaf4d132
@ -57,6 +57,7 @@ USBMonitor::USBMonitor(QObject *parent): QThread(parent) {
|
|||||||
notificationWidget = 0;
|
notificationWidget = 0;
|
||||||
#endif // Q_OS_WIN
|
#endif // Q_OS_WIN
|
||||||
setUpNotifications();
|
setUpNotifications();
|
||||||
|
m_instance=this;
|
||||||
}
|
}
|
||||||
|
|
||||||
USBMonitor::~USBMonitor()
|
USBMonitor::~USBMonitor()
|
||||||
@ -223,10 +224,8 @@ Returns a list of all currently available devices
|
|||||||
*/
|
*/
|
||||||
QList<USBPortInfo> USBMonitor::availableDevices()
|
QList<USBPortInfo> USBMonitor::availableDevices()
|
||||||
{
|
{
|
||||||
GUID guid_hidd;
|
|
||||||
HidD_GetHidGuid(&guid_hidd);
|
|
||||||
QList<USBPortInfo> ports;
|
QList<USBPortInfo> ports;
|
||||||
enumerateDevicesWin(guid_hidd, &ports);
|
enumerateDevicesWin(guid_hid, &ports);
|
||||||
//qDebug()<<"USBMonitorWin availabledevices="<<ports.count();
|
//qDebug()<<"USBMonitorWin availabledevices="<<ports.count();
|
||||||
return ports;
|
return ports;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user