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:
parent
8fb82584b1
commit
0eb0f4365a
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user