mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
Fixes the incompatible message when the GIT tag has a leading zero.
This commit is contained in:
parent
057cfafcf1
commit
411c38aebf
@ -643,8 +643,8 @@ void UploaderGadgetWidget::versionMatchCheck()
|
|||||||
|
|
||||||
QString gcsDescription = QString::fromLatin1(Core::Constants::GCS_REVISION_STR);
|
QString gcsDescription = QString::fromLatin1(Core::Constants::GCS_REVISION_STR);
|
||||||
QString gcsGitHash = gcsDescription.mid(gcsDescription.indexOf(":")+1, 8);
|
QString gcsGitHash = gcsDescription.mid(gcsDescription.indexOf(":")+1, 8);
|
||||||
|
gcsGitHash.remove( QRegExp("^[0]*") );
|
||||||
QString gcsGitDate = gcsDescription.mid(gcsDescription.indexOf(" ")+1, 14);
|
QString gcsGitDate = gcsDescription.mid(gcsDescription.indexOf(" ")+1, 14);
|
||||||
|
|
||||||
QString gcsVersion = gcsGitDate + " (" + gcsGitHash + ")";
|
QString gcsVersion = gcsGitDate + " (" + gcsGitHash + ")";
|
||||||
QString fwVersion = boardDescription.gitDate + " (" + boardDescription.gitHash + ")";
|
QString fwVersion = boardDescription.gitDate + " (" + boardDescription.gitHash + ")";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user