Unverified Commit 705c8489 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6984 from DonLakeFlyer/FWCheck

Option driven firmware version check
parents 978279c6 4d1ee19f
......@@ -35,6 +35,7 @@
#include "SettingsManager.h"
#include "QGCQGeoCoordinate.h"
#include "QGCCorePlugin.h"
#include "QGCOptions.h"
#include "ADSBVehicle.h"
#include "QGCCameraManager.h"
#include "VideoReceiver.h"
......@@ -1251,7 +1252,9 @@ void Vehicle::_handleAutopilotVersion(LinkInterface *link, mavlink_message_t& me
// APM Firmware stores the first 8 characters of the git hash as an ASCII character string
_gitHash = QString::fromUtf8((char*)autopilotVersion.flight_custom_version, 8);
}
_firmwarePlugin->checkIfIsLatestStable(this);
if (_toolbox->corePlugin()->options()->checkFirmwareVersion()) {
_firmwarePlugin->checkIfIsLatestStable(this);
}
emit gitHashChanged(_gitHash);
_setCapabilities(autopilotVersion.capabilities);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment