1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Merged in filnet/librepilot/LP-245_gcs_spurious_unsaved_config_prompts (pull request #336)

LP-245 config: fix osx compile error
This commit is contained in:
Lalanne Laurent 2016-10-05 20:46:46 +02:00
commit 88763a4554

View File

@ -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);