From 0d3013857121f0942e1a1077fd04faed1c3b8fc7 Mon Sep 17 00:00:00 2001 From: PT_Dreamer Date: Tue, 18 Sep 2012 13:51:44 +0100 Subject: [PATCH] GCS-Reduced UAVO hash bytes displayed from 20 to 8 --- .../plugins/uploader/uploadergadgetwidget.cpp | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp index afcb32669..5085d1afd 100755 --- a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp @@ -661,24 +661,30 @@ void UploaderGadgetWidget::versionMatchCheck() uavoHashArray.append(str.toInt(&ok,16)); } - QByteArray fwVersion; - fwVersion=boardDescription.uavoHash; + QByteArray fwVersion=boardDescription.uavoHash; if (fwVersion != uavoHashArray) { - QString uavoHashStr; - QString fwVersionStr; + + QString gcsDescription = QString::fromLatin1(Core::Constants::GCS_REVISION_STR); + QString gcsGitHash = gcsDescription.mid(gcsDescription.indexOf(":")+1, 8); + gcsGitHash.remove( QRegExp("^[0]*") ); + QString gcsGitDate = gcsDescription.mid(gcsDescription.indexOf(" ")+1, 14); + + QString gcsUavoHashStr; + QString fwUavoHashStr; foreach(char i, fwVersion) { - qDebug()<showMessage(warning); } }