mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +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:
commit
88763a4554
@ -207,16 +207,17 @@ void ConfigOPLinkWidget::updateInfo()
|
|||||||
// qDebug() << "ConfigOPLinkWidget::updateInfo";
|
// qDebug() << "ConfigOPLinkWidget::updateInfo";
|
||||||
|
|
||||||
// Update the Description field
|
// Update the Description field
|
||||||
quint8 *desc = oplinkStatusObj->getData().Description;
|
|
||||||
|
|
||||||
// extract desc into byte array
|
// extract desc into byte array
|
||||||
|
OPLinkStatus::DataFields oplinkStatusData = oplinkStatusObj->getData();
|
||||||
|
quint8 *desc = oplinkStatusData.Description;
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < OPLinkStatus::DESCRIPTION_NUMELEM; i++) {
|
for (unsigned int i = 0; i < OPLinkStatus::DESCRIPTION_NUMELEM; i++) {
|
||||||
ba.append(desc[i]);
|
ba.append(desc[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse byte array intto device descriptor
|
// parse byte array into device descriptor
|
||||||
deviceDescriptorStruct dds;
|
deviceDescriptorStruct dds;
|
||||||
UAVObjectUtilManager::descriptionToStructure(ba, dds);
|
UAVObjectUtilManager::descriptionToStructure(ba, dds);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user