1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-770: export GCS branch dirty state and short UAVO hash

This commit is contained in:
Oleg Semyonov 2013-05-28 04:14:54 +03:00
parent 208278a7cb
commit 0512ca79ef

View File

@ -241,15 +241,18 @@ QString UAVSettingsImportExportFactory::createXMLDocument(const enum storedData
versionInfo.appendChild(hw);
QDomElement fw = doc.createElement("firmware");
QString uavo = board.uavoHash.toHex();
fw.setAttribute("tag", board.gitTag);
fw.setAttribute("date", board.gitDate);
fw.setAttribute("hash", board.gitHash);
fw.setAttribute("tag", board.gitTag);
fw.setAttribute("uavo", uavo.left(8));
versionInfo.appendChild(fw);
QDomElement gcs = doc.createElement("gcs");
gcs.setAttribute("tag", VersionInfo::tagOrBranch() + VersionInfo::dirty());
gcs.setAttribute("date", VersionInfo::dateTime());
gcs.setAttribute("hash", VersionInfo::hash());
gcs.setAttribute("tag", VersionInfo::tagOrBranch());
gcs.setAttribute("hash", VersionInfo::hash().left(8));
gcs.setAttribute("uavo", VersionInfo::uavoHash().left(8));
versionInfo.appendChild(gcs);
// create settings and/or data elements