mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-21/Upload Plugin - Change HW ID to 16bits. Should still be compatible with the old version.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2400 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
301d9cddfc
commit
693c2219ec
@ -569,7 +569,9 @@ bool DFUObject::findDevices()
|
||||
result = receiveData(buf,BUF_LEN);
|
||||
// int result = hidHandle.send(0,buf, BUF_LEN, 5000);
|
||||
// result = hidHandle.receive(0,buf,BUF_LEN,5000);
|
||||
devices[x].ID=buf[9];
|
||||
//devices[x].ID=buf[9];
|
||||
devices[x].ID=buf[14];
|
||||
devices[x].ID=devices[x].ID<<8 | (quint8)buf[15];
|
||||
devices[x].BL_Version=buf[7];
|
||||
devices[x].SizeOfDesc=buf[8];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user