From 559f09cd0f6155efdc7e74fa670125fd9e1719a3 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 8 Oct 2018 18:19:07 -0300 Subject: [PATCH] APMSafetyComponentSub.qml: update to use versionCompare() --- src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml b/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml index ed39ee413..611401f84 100644 --- a/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml +++ b/src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml @@ -36,7 +36,7 @@ SetupPage { QGCPalette { id: ggcPal; colorGroupEnabled: true } property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle - property bool _firmware34: _activeVehicle.firmwareMajorVersion == 3 && _activeVehicle.firmwareMinorVersion == 4 + property bool _firmware34: _activeVehicle.versionCompare(3, 5, 0) < 0 // Enable/Action parameters property Fact _failsafeBatteryEnable: controller.getParameterFact(-1, "r.BATT_FS_LOW_ACT") -- 2.22.0