mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
LP-245 config: fix osx compile error
This commit is contained in:
parent
9703dd1458
commit
e6abbb781b
@ -207,16 +207,17 @@ void ConfigOPLinkWidget::updateInfo()
|
||||
// qDebug() << "ConfigOPLinkWidget::updateInfo";
|
||||
|
||||
// Update the Description field
|
||||
quint8 *desc = oplinkStatusObj->getData().Description;
|
||||
|
||||
// extract desc into byte array
|
||||
OPLinkStatus::DataFields oplinkStatusData = oplinkStatusObj->getData();
|
||||
quint8 *desc = oplinkStatusData.Description;
|
||||
QByteArray ba;
|
||||
|
||||
for (unsigned int i = 0; i < OPLinkStatus::DESCRIPTION_NUMELEM; i++) {
|
||||
ba.append(desc[i]);
|
||||
}
|
||||
|
||||
// parse byte array intto device descriptor
|
||||
// parse byte array into device descriptor
|
||||
deviceDescriptorStruct dds;
|
||||
UAVObjectUtilManager::descriptionToStructure(ba, dds);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user