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:
parent
208278a7cb
commit
0512ca79ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user