1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

use constants in the rawhid plugin instead of hardcoded VID

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3004 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2011-03-07 22:16:50 +00:00 committed by edouard
parent 5c7e74e169
commit 6dcb9b2dcc

View File

@ -85,7 +85,7 @@ QStringList RawHIDConnection::availableDevices()
{
QStringList devices;
QList<USBPortInfo> portsList = m_usbMonitor.availableDevices(USB_VID, -1, -1);
QList<USBPortInfo> portsList = m_usbMonitor.availableDevices(USB_VID, -1, -1);
// We currently list devices by their serial number
foreach(USBPortInfo prt, portsList) {
devices.append(prt.serialNumber);