1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

OP GCS/HID - just added the Usage field to the USBPortInfo struct.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2977 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2011-03-05 15:58:17 +00:00 committed by zedamota
parent 8fb82584b1
commit 0eb0f4365a
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ struct USBPortInfo {
QString product;
QString devicePath; //only has meaning on windows
int UsagePage;
int Usage;
int vendorID; ///< Vendor ID.
int productID; ///< Product ID
int bcdDevice;

View File

@ -313,6 +313,7 @@ int USBMonitor::infoFromHandle(const GUID & guid,USBPortInfo & info,HDEVINFO & d
}
//qDebug()<<"index6="<<index;
info.UsagePage=capabilities.UsagePage;
info.Usage=capabilities.Usage;
HidD_FreePreparsedData(hid_data);
char temp[126];
HidD_GetSerialNumberString(h, temp, sizeof(temp));